Commit 097708ae authored by Nick Coghlan's avatar Nick Coghlan

Issue #6074: Actually delete the source file in the test as intended

parent b48c028c
...@@ -156,7 +156,7 @@ class ImportTests(unittest.TestCase): ...@@ -156,7 +156,7 @@ class ImportTests(unittest.TestCase):
m2 = __import__(TESTFN) m2 = __import__(TESTFN)
self.assertEqual(m2.x, 'rewritten') self.assertEqual(m2.x, 'rewritten')
# Now delete the source file and check the pyc was rewritten # Now delete the source file and check the pyc was rewritten
unlink(TESTFN) unlink(fname)
unload(TESTFN) unload(TESTFN)
m3 = __import__(TESTFN) m3 = __import__(TESTFN)
self.assertEqual(m3.x, 'rewritten') self.assertEqual(m3.x, 'rewritten')
......
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