Kaydet (Commit) fc6f4cd3 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

merge 3.3

...@@ -267,7 +267,8 @@ class ImportTests(unittest.TestCase): ...@@ -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:])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment