Commit dea2ec4b authored by Brett Cannon's avatar Brett Cannon

Fix a test to not use an assertion for something that could be

legitimately false.
parent c8c952ce
......@@ -241,8 +241,9 @@ class ImportTests(unittest.TestCase):
# Issue #15902
name = '_heapq'
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:])
......
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