mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
bpo-40275: Use new test.support helper submodules in tests (GH-21314)
This commit is contained in:
parent
9ce8132e1f
commit
883bc63833
19 changed files with 225 additions and 194 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue