aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_bisect.py
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-08-04 00:41:24 +0800
committerGitHub <noreply@github.com>2020-08-03 18:41:24 +0200
commita7f5d93bb6906d0f999248b47295d3a59b130f4d (patch)
treea0dc5043ecc7a4250902f8d14c802382b1c94b8a /Lib/test/test_bisect.py
parent488512bf4953d856fcb049a05060a450af52fcdc (diff)
downloadcpython-a7f5d93bb6906d0f999248b47295d3a59b130f4d.tar.gz
cpython-a7f5d93bb6906d0f999248b47295d3a59b130f4d.zip
bpo-40275: Use new test.support helper submodules in tests (GH-21449)
Diffstat (limited to 'Lib/test/test_bisect.py')
-rw-r--r--Lib/test/test_bisect.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/test/test_bisect.py b/Lib/test/test_bisect.py
index 580a963f627..fc7990d765e 100644
--- a/Lib/test/test_bisect.py
+++ b/Lib/test/test_bisect.py
@@ -1,10 +1,11 @@
import sys
import unittest
-from test import support
+from test.support import import_helper
from collections import UserList
-py_bisect = support.import_fresh_module('bisect', blocked=['_bisect'])
-c_bisect = support.import_fresh_module('bisect', fresh=['_bisect'])
+
+py_bisect = import_helper.import_fresh_module('bisect', blocked=['_bisect'])
+c_bisect = import_helper.import_fresh_module('bisect', fresh=['_bisect'])
class Range(object):
"""A trivial range()-like object that has an insert() method."""