summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_heapq.py
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-07-06 09:12:49 (GMT)
committerGitHub <noreply@github.com>2020-07-06 09:12:49 (GMT)
commit883bc638335a57a6e6a6344c2fc132c4f9a0ec42 (patch)
tree1dd74a4aeeb80d8b85ff18de700763199a7bc1bc /Lib/test/test_heapq.py
parent9ce8132e1f2339cfe116dfd4795574182c2245b4 (diff)
downloadcpython-883bc638335a57a6e6a6344c2fc132c4f9a0ec42.zip
cpython-883bc638335a57a6e6a6344c2fc132c4f9a0ec42.tar.gz
cpython-883bc638335a57a6e6a6344c2fc132c4f9a0ec42.tar.bz2
bpo-40275: Use new test.support helper submodules in tests (GH-21314)
Diffstat (limited to 'Lib/test/test_heapq.py')
-rw-r--r--Lib/test/test_heapq.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_heapq.py b/Lib/test/test_heapq.py
index 6902573..ebbc627 100644
--- a/Lib/test/test_heapq.py
+++ b/Lib/test/test_heapq.py
@@ -5,11 +5,12 @@ import unittest
import doctest
from test import support
+from test.support import import_helper
from unittest import TestCase, skipUnless
from operator import itemgetter
-py_heapq = support.import_fresh_module('heapq', blocked=['_heapq'])
-c_heapq = support.import_fresh_module('heapq', fresh=['_heapq'])
+py_heapq = import_helper.import_fresh_module('heapq', blocked=['_heapq'])
+c_heapq = import_helper.import_fresh_module('heapq', fresh=['_heapq'])
# _heapq.nlargest/nsmallest are saved in heapq._nlargest/_smallest when
# _heapq is imported, so check them there