summaryrefslogtreecommitdiff
path: root/Lib/distutils/tests/support.py
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-07-06 20:29:49 +0800
committerGitHub <noreply@github.com>2020-07-06 14:29:49 +0200
commitdeb016224cc506503fb05e821a60158c83918ed4 (patch)
tree21b683e93134e016806477e15df1211567441301 /Lib/distutils/tests/support.py
parentb4a9263708cc67c98c4d53b16933f6e5dd07990f (diff)
downloadcpython-git-deb016224cc506503fb05e821a60158c83918ed4.tar.gz
bpo-40275: Use new test.support helper submodules in tests (GH-21317)
Diffstat (limited to 'Lib/distutils/tests/support.py')
-rw-r--r--Lib/distutils/tests/support.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/tests/support.py b/Lib/distutils/tests/support.py
index 259af882ec..23b907b607 100644
--- a/Lib/distutils/tests/support.py
+++ b/Lib/distutils/tests/support.py
@@ -6,7 +6,7 @@ import tempfile
import unittest
import sysconfig
from copy import deepcopy
-import test.support
+from test.support import os_helper
from distutils import log
from distutils.log import DEBUG, INFO, WARN, ERROR, FATAL
@@ -64,7 +64,7 @@ class TempdirManager(object):
super().tearDown()
while self.tempdirs:
tmpdir = self.tempdirs.pop()
- test.support.rmtree(tmpdir)
+ os_helper.rmtree(tmpdir)
def mkdtemp(self):
"""Create a temporary directory that will be cleaned up.