diff options
author | Hai Shi <shihai1992@gmail.com> | 2020-08-03 16:49:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-03 16:49:18 (GMT) |
commit | 4660597b51b3d14ce6269d0ed865ab7e22c6ae1f (patch) | |
tree | 00ab23106abb1d0023e261685dc4f2077002aabd /Lib/test/test_operator.py | |
parent | bb0424b122e3d222a558bd4177ce37befd3e0347 (diff) | |
download | cpython-4660597b51b3d14ce6269d0ed865ab7e22c6ae1f.zip cpython-4660597b51b3d14ce6269d0ed865ab7e22c6ae1f.tar.gz cpython-4660597b51b3d14ce6269d0ed865ab7e22c6ae1f.tar.bz2 |
bpo-40275: Use new test.support helper submodules in tests (GH-21448)
Diffstat (limited to 'Lib/test/test_operator.py')
-rw-r--r-- | Lib/test/test_operator.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/test/test_operator.py b/Lib/test/test_operator.py index 29f5e42..1ecae85 100644 --- a/Lib/test/test_operator.py +++ b/Lib/test/test_operator.py @@ -3,9 +3,13 @@ import pickle import sys from test import support +from test.support import import_helper -py_operator = support.import_fresh_module('operator', blocked=['_operator']) -c_operator = support.import_fresh_module('operator', fresh=['_operator']) + +py_operator = import_helper.import_fresh_module('operator', + blocked=['_operator']) +c_operator = import_helper.import_fresh_module('operator', + fresh=['_operator']) class Seq1: def __init__(self, lst): |