mirror of
https://github.com/python/cpython.git
synced 2025-11-13 07:26:31 +00:00
Issue #6074: Actually delete the source file in the test as intended
This commit is contained in:
parent
34937ce249
commit
c71b4c7198
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ class ImportTests(unittest.TestCase):
|
||||||
m2 = __import__(TESTFN)
|
m2 = __import__(TESTFN)
|
||||||
self.assertEqual(m2.x, 'rewritten')
|
self.assertEqual(m2.x, 'rewritten')
|
||||||
# Now delete the source file and check the pyc was rewritten
|
# Now delete the source file and check the pyc was rewritten
|
||||||
unlink(TESTFN)
|
unlink(fname)
|
||||||
unload(TESTFN)
|
unload(TESTFN)
|
||||||
m3 = __import__(TESTFN)
|
m3 = __import__(TESTFN)
|
||||||
self.assertEqual(m3.x, 'rewritten')
|
self.assertEqual(m3.x, 'rewritten')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue