summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_site.py
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-08-06 11:51:29 (GMT)
committerGitHub <noreply@github.com>2020-08-06 11:51:29 (GMT)
commit79bb2c93f2d81702fdf1f93720369e18a76b7d1a (patch)
tree6ab9d0c6ef07954cc871dd6eb06f3a80329d33e6 /Lib/test/test_site.py
parent52f98424a55e14f05dfa7483cc0faf634a61c9ff (diff)
downloadcpython-79bb2c93f2d81702fdf1f93720369e18a76b7d1a.zip
cpython-79bb2c93f2d81702fdf1f93720369e18a76b7d1a.tar.gz
cpython-79bb2c93f2d81702fdf1f93720369e18a76b7d1a.tar.bz2
bpo-40275: Use new test.support helper submodules in tests (GH-21743)
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r--Lib/test/test_site.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
index 5901939..97b5c5d 100644
--- a/Lib/test/test_site.py
+++ b/Lib/test/test_site.py
@@ -7,6 +7,7 @@ executing have not been removed.
import unittest
import test.support
from test import support
+from test.support import os_helper
from test.support import socket_helper
from test.support import captured_stderr
from test.support.os_helper import TESTFN, EnvironmentVarGuard, change_cwd
@@ -601,7 +602,7 @@ class _pthFileTests(unittest.TestCase):
def _create_underpth_exe(self, lines, exe_pth=True):
import _winapi
temp_dir = tempfile.mkdtemp()
- self.addCleanup(test.support.rmtree, temp_dir)
+ self.addCleanup(os_helper.rmtree, temp_dir)
exe_file = os.path.join(temp_dir, os.path.split(sys.executable)[1])
dll_src_file = _winapi.GetModuleFileName(sys.dllhandle)
dll_file = os.path.join(temp_dir, os.path.split(dll_src_file)[1])