]> granicus.if.org Git - python/commitdiff
Change a test assertion to a conditional so the test will pass on
authorBrett Cannon <brett@python.org>
Sat, 4 May 2013 21:54:57 +0000 (17:54 -0400)
committerBrett Cannon <brett@python.org>
Sat, 4 May 2013 21:54:57 +0000 (17:54 -0400)
Windows.

Lib/test/test_imp.py

index 44a2d9cc1ab2828aa3676a531f944ba0135b702e..f46a1f5863fb0f3bd53ef5e6fd67b3f91bb8b638 100644 (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:])