diff options
| author | Brett Cannon <brett@python.org> | 2013-05-04 17:54:57 -0400 | 
|---|---|---|
| committer | Brett Cannon <brett@python.org> | 2013-05-04 17:54:57 -0400 | 
| commit | 8772b18bc4eeff5475b998ae74c21df56fb234a2 (patch) | |
| tree | 3f3cb25cc67c063af1bb6a13120f2d6eb1b0aea8 /Lib/test/test_imp.py | |
| parent | 13853a67cf2d8f2b2fb9a8da467fba16424957fa (diff) | |
| download | cpython-git-8772b18bc4eeff5475b998ae74c21df56fb234a2.tar.gz | |
Change a test assertion to a conditional so the test will pass on
Windows.
Diffstat (limited to 'Lib/test/test_imp.py')
| -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 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:])  | 
