Commits

Benjamin Peterson  committed 5fc9640 Merge

merge 3.3

  • Participants
  • Parent commits 62416c1, 2966c9d

Comments (0)

Files changed (1)

File Lib/test/test_imp.py

         # 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:])