mirror of https://github.com/python/cpython.git
Issue #6074: Actually delete the source file in the test as intended
This commit is contained in:
parent
34937ce249
commit
c71b4c7198
|
@ -158,7 +158,7 @@ def test_rewrite_pyc_with_read_only_source(self):
|
|||
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