diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-05-11 21:29:11 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-05-11 21:29:11 (GMT) |
commit | fc6f4cd39804ef5b54d461ec0023c44ed3a0e0ed (patch) | |
tree | 3ee879772c661c9c32ccda1032316514a7ea8e07 /Lib/test/test_imp.py | |
parent | 2e8457d01c88b9847e3814972cb3efa470819c5c (diff) | |
parent | aa6f688bd4f02b5d50c26cf649172672c1546d12 (diff) | |
download | cpython-fc6f4cd39804ef5b54d461ec0023c44ed3a0e0ed.zip cpython-fc6f4cd39804ef5b54d461ec0023c44ed3a0e0ed.tar.gz cpython-fc6f4cd39804ef5b54d461ec0023c44ed3a0e0ed.tar.bz2 |
merge 3.3
Diffstat (limited to 'Lib/test/test_imp.py')
-rw-r--r-- | Lib/test/test_imp.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py index f46a1f5..7b85948 100644 --- a/Lib/test/test_imp.py +++ b/Lib/test/test_imp.py @@ -267,7 +267,8 @@ class ImportTests(unittest.TestCase): # Issue #15902 name = '_testimportmultiple' found = imp.find_module(name) - found[0].close() + if found[0] is not None: + found[0].close() if found[2][2] != imp.C_EXTENSION: return imp.load_module(name, None, *found[1:]) |