aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_tools/test_sundry.py
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-08-04 23:53:12 +0800
committerGitHub <noreply@github.com>2020-08-04 17:53:12 +0200
commitc7decc27d529c04a4e6b2922e3f3f9419b920f63 (patch)
tree9bcb971af68ed2e08f4aa4001412d38520194cff /Lib/test/test_tools/test_sundry.py
parent604bba1f8fe32479c89b9824b2231cc4480dd110 (diff)
downloadcpython-c7decc27d529c04a4e6b2922e3f3f9419b920f63.tar.gz
cpython-c7decc27d529c04a4e6b2922e3f3f9419b920f63.zip
bpo-40275: Use new test.support helper submodules in tests (GH-21727)
Diffstat (limited to 'Lib/test/test_tools/test_sundry.py')
-rw-r--r--Lib/test/test_tools/test_sundry.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_tools/test_sundry.py b/Lib/test/test_tools/test_sundry.py
index 10eb6941b3b..8b5a963e25b 100644
--- a/Lib/test/test_tools/test_sundry.py
+++ b/Lib/test/test_tools/test_sundry.py
@@ -8,7 +8,7 @@ tests of their own.
import os
import sys
import unittest
-from test import support
+from test.support import import_helper
from test.test_tools import scriptsdir, import_tool, skip_if_missing
@@ -30,7 +30,7 @@ class TestSundryScripts(unittest.TestCase):
skiplist = blacklist + whitelist + windows_only + other
def test_sundry(self):
- old_modules = support.modules_setup()
+ old_modules = import_helper.modules_setup()
try:
for fn in os.listdir(scriptsdir):
if not fn.endswith('.py'):
@@ -43,7 +43,7 @@ class TestSundryScripts(unittest.TestCase):
import_tool(name)
finally:
# Unload all modules loaded in this test
- support.modules_cleanup(*old_modules)
+ import_helper.modules_cleanup(*old_modules)
@unittest.skipIf(sys.platform != "win32", "Windows-only test")
def test_sundry_windows(self):