Commit c71b4c71 authored by Nick Coghlan's avatar Nick Coghlan

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

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