Kaydet (Commit) 8a624a9e authored tarafından R. David Murray's avatar R. David Murray

Conditionalize test cleanup code to eliminate traceback, which will

hopefully reveal the real problem.
üst 42b145d0
......@@ -107,7 +107,7 @@ class ImportTest(unittest.TestCase):
stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)
finally:
remove_files(TESTFN)
del sys.modules[TESTFN]
if TESTFN in sys.modules: del sys.modules[TESTFN]
def testImpModule(self):
# Verify that the imp module can correctly load and find .py files
......
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