mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
bpo-40275: Use new test.support helper submodules in tests (GH-21317)
This commit is contained in:
parent
b4a9263708
commit
deb016224c
18 changed files with 128 additions and 110 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue