mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Fix a test to not use an assertion for something that could be
legitimately false.
This commit is contained in:
parent
c8c952ce2a
commit
dea2ec4b1d
1 changed files with 2 additions and 1 deletions
|
@ -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:])
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue