mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
merge 3.3
This commit is contained in:
commit
fc6f4cd398
1 changed files with 2 additions and 1 deletions
|
@ -267,7 +267,8 @@ class ImportTests(unittest.TestCase):
|
||||||
# Issue #15902
|
# Issue #15902
|
||||||
name = '_testimportmultiple'
|
name = '_testimportmultiple'
|
||||||
found = imp.find_module(name)
|
found = imp.find_module(name)
|
||||||
found[0].close()
|
if found[0] is not None:
|
||||||
|
found[0].close()
|
||||||
if found[2][2] != imp.C_EXTENSION:
|
if found[2][2] != imp.C_EXTENSION:
|
||||||
return
|
return
|
||||||
imp.load_module(name, None, *found[1:])
|
imp.load_module(name, None, *found[1:])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue