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

This commit is contained in:
Nick Coghlan 2012-10-19 23:17:48 +10:00
parent b48c028ca7
commit 097708aef6
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,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')