Kaydet (Commit) 8772b18b authored tarafından Brett Cannon's avatar Brett Cannon

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

Windows.
üst 13853a67
...@@ -265,10 +265,11 @@ class ImportTests(unittest.TestCase): ...@@ -265,10 +265,11 @@ class ImportTests(unittest.TestCase):
# When loading an extension module and the file is None, open one # When loading an extension module and the file is None, open one
# on the behalf of imp.load_dynamic(). # on the behalf of imp.load_dynamic().
# Issue #15902 # Issue #15902
name = '_heapq' name = '_testimportmultiple'
found = imp.find_module(name) found = imp.find_module(name)
assert found[2][2] == imp.C_EXTENSION
found[0].close() found[0].close()
if found[2][2] != imp.C_EXTENSION:
return
imp.load_module(name, None, *found[1:]) imp.load_module(name, None, *found[1:])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment