mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Merged revisions 71799 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71799 | nick.coghlan | 2009-04-23 01:26:04 +1000 (Thu, 23 Apr 2009) | 1 line Issue 5354: Change API for import_fresh_module() to better support test_warnings use case (also fixes some bugs in the original implementation) ........
This commit is contained in:
parent
ae9b6ad91e
commit
4738470402
5 changed files with 93 additions and 32 deletions
|
@ -8,7 +8,7 @@ import sys
|
|||
# We do a bit of trickery here to be able to test both the C implementation
|
||||
# and the Python implementation of the module.
|
||||
import heapq as c_heapq
|
||||
py_heapq = support.import_fresh_module('heapq', ['_heapq'])
|
||||
py_heapq = support.import_fresh_module('heapq', blocked=['_heapq'])
|
||||
|
||||
class TestHeap(unittest.TestCase):
|
||||
module = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue