From deb016224cc506503fb05e821a60158c83918ed4 Mon Sep 17 00:00:00 2001 From: Hai Shi Date: Mon, 6 Jul 2020 20:29:49 +0800 Subject: bpo-40275: Use new test.support helper submodules in tests (GH-21317) --- Lib/distutils/tests/support.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/distutils/tests/support.py') 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. -- cgit v1.2.1