Change a test assertion to a conditional so the test will pass on

Windows.
This commit is contained in:
Brett Cannon 2013-05-04 17:54:57 -04:00
parent 13853a67cf
commit 8772b18bc4
1 changed files with 3 additions and 2 deletions

View File

@ -265,10 +265,11 @@ class ImportTests(unittest.TestCase):
# When loading an extension module and the file is None, open one
# on the behalf of imp.load_dynamic().
# Issue #15902
name = '_heapq'
name = '_testimportmultiple'
found = imp.find_module(name)
assert found[2][2] == imp.C_EXTENSION
found[0].close()
if found[2][2] != imp.C_EXTENSION:
return
imp.load_module(name, None, *found[1:])