Issue #6074: Actually delete the source file in the test as intended
This commit is contained in:
parent
b48c028ca7
commit
097708aef6
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue