diff options
author | Brett Cannon <brett@python.org> | 2013-05-04 21:54:57 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-05-04 21:54:57 (GMT) |
commit | 8772b18bc4eeff5475b998ae74c21df56fb234a2 (patch) | |
tree | 3f3cb25cc67c063af1bb6a13120f2d6eb1b0aea8 | |
parent | 13853a67cf2d8f2b2fb9a8da467fba16424957fa (diff) | |
download | cpython-8772b18bc4eeff5475b998ae74c21df56fb234a2.zip cpython-8772b18bc4eeff5475b998ae74c21df56fb234a2.tar.gz cpython-8772b18bc4eeff5475b998ae74c21df56fb234a2.tar.bz2 |
Change a test assertion to a conditional so the test will pass on
Windows.
-rw-r--r-- | Lib/test/test_imp.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py index 44a2d9c..f46a1f5 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:]) |