From: Brett Cannon Date: Sat, 4 May 2013 21:54:57 +0000 (-0400) Subject: Change a test assertion to a conditional so the test will pass on X-Git-Tag: v3.4.0a1~801 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8772b18bc4eeff5475b998ae74c21df56fb234a2;p=python Change a test assertion to a conditional so the test will pass on Windows. --- diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py index 44a2d9cc1a..f46a1f5863 100644 --- a/Lib/test/test_imp.py +++ b/Lib/test/test_imp.py @@ -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:])