diff options
author | Hai Shi <shihai1992@gmail.com> | 2020-08-06 11:51:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-06 11:51:29 (GMT) |
commit | 79bb2c93f2d81702fdf1f93720369e18a76b7d1a (patch) | |
tree | 6ab9d0c6ef07954cc871dd6eb06f3a80329d33e6 /Lib/test/test_import | |
parent | 52f98424a55e14f05dfa7483cc0faf634a61c9ff (diff) | |
download | cpython-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_import')
-rw-r--r-- | Lib/test/test_import/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py index f4a83d2..6fd3983 100644 --- a/Lib/test/test_import/__init__.py +++ b/Lib/test/test_import/__init__.py @@ -18,7 +18,6 @@ import time import unittest from unittest import mock -import test.support from test.support import os_helper from test.support import (is_jython, swap_attr, swap_item, cpython_only) from test.support.import_helper import ( @@ -480,7 +479,7 @@ class ImportTests(unittest.TestCase): os.path.dirname(pydname), "sqlite3{}.dll".format("_d" if "_d" in pydname else "")) - with test.support.temp_dir() as tmp: + with os_helper.temp_dir() as tmp: tmp2 = os.path.join(tmp, "DLLs") os.mkdir(tmp2) |