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

This commit is contained in:
Nick Coghlan 2012-10-19 23:38:36 +10:00
parent 34937ce249
commit c71b4c7198
1 changed files with 1 additions and 1 deletions

View File

@ -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')