summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_functools.py
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-06-30 13:46:06 (GMT)
committerGitHub <noreply@github.com>2020-06-30 13:46:06 (GMT)
commit3ddc634cd5469550c0c2dc5a6051a70739995699 (patch)
tree5c4bba3b3ff821397ef129298a49f4b3f34c58a4 /Lib/test/test_functools.py
parent3fa4799c3f9d9de7cac30e5db3627e9e125b9ce5 (diff)
downloadcpython-3ddc634cd5469550c0c2dc5a6051a70739995699.zip
cpython-3ddc634cd5469550c0c2dc5a6051a70739995699.tar.gz
cpython-3ddc634cd5469550c0c2dc5a6051a70739995699.tar.bz2
bpo-40275: Use new test.support helper submodules in tests (GH-21219)
Diffstat (limited to 'Lib/test/test_functools.py')
-rw-r--r--Lib/test/test_functools.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py
index e726188..edd5773 100644
--- a/Lib/test/test_functools.py
+++ b/Lib/test/test_functools.py
@@ -19,15 +19,18 @@ import gc
from weakref import proxy
import contextlib
+from test.support import import_helper
from test.support import threading_helper
from test.support.script_helper import assert_python_ok
import functools
-py_functools = support.import_fresh_module('functools', blocked=['_functools'])
-c_functools = support.import_fresh_module('functools', fresh=['_functools'])
+py_functools = import_helper.import_fresh_module('functools',
+ blocked=['_functools'])
+c_functools = import_helper.import_fresh_module('functools',
+ fresh=['_functools'])
-decimal = support.import_fresh_module('decimal', fresh=['_decimal'])
+decimal = import_helper.import_fresh_module('decimal', fresh=['_decimal'])
@contextlib.contextmanager
def replaced_module(name, replacement):