summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bdb.py
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-08-03 16:47:42 (GMT)
committerGitHub <noreply@github.com>2020-08-03 16:47:42 (GMT)
commitbb0424b122e3d222a558bd4177ce37befd3e0347 (patch)
treef5962e6276319558e48b702b6fa5a48f5c03ff6b /Lib/test/test_bdb.py
parenta7f5d93bb6906d0f999248b47295d3a59b130f4d (diff)
downloadcpython-bb0424b122e3d222a558bd4177ce37befd3e0347.zip
cpython-bb0424b122e3d222a558bd4177ce37befd3e0347.tar.gz
cpython-bb0424b122e3d222a558bd4177ce37befd3e0347.tar.bz2
bpo-40275: Use new test.support helper submodules in tests (GH-21451)
Diffstat (limited to 'Lib/test/test_bdb.py')
-rw-r--r--Lib/test/test_bdb.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/test_bdb.py b/Lib/test/test_bdb.py
index ae16880..9bce780 100644
--- a/Lib/test/test_bdb.py
+++ b/Lib/test/test_bdb.py
@@ -58,6 +58,9 @@ import linecache
from contextlib import contextmanager
from itertools import islice, repeat
import test.support
+from test.support import import_helper
+from test.support import os_helper
+
class BdbException(Exception): pass
class BdbError(BdbException): """Error raised by the Bdb instance."""
@@ -531,7 +534,7 @@ def run_test(modules, set_list, skip=None):
@contextmanager
def create_modules(modules):
- with test.support.temp_cwd():
+ with os_helper.temp_cwd():
sys.path.append(os.getcwd())
try:
for m in modules:
@@ -543,7 +546,7 @@ def create_modules(modules):
yield
finally:
for m in modules:
- test.support.forget(m)
+ import_helper.forget(m)
sys.path.pop()
def break_in_func(funcname, fname=__file__, temporary=False, cond=None):