commit | dea2ec4b1df1c9f5567591bfea427fa3d2d694e8 | [log] [tgz] |
---|---|---|
author | Brett Cannon <brett@python.org> | Sat May 04 18:11:12 2013 -0400 |
committer | Brett Cannon <brett@python.org> | Sat May 04 18:11:12 2013 -0400 |
tree | 3073f6ec8ab6dbc6e2a6625f20e18c03103725e0 | |
parent | c8c952ce2a77343b6fe87a9534026b4b34011322 [diff] [blame] |
Fix a test to not use an assertion for something that could be legitimately false.
diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py index 2b2bbd3..96771d8 100644 --- a/Lib/test/test_imp.py +++ b/Lib/test/test_imp.py
@@ -241,8 +241,9 @@ # 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:])