]> granicus.if.org Git - python/commitdiff
Issue #6074: Actually delete the source file in the test as intended
authorNick Coghlan <ncoghlan@gmail.com>
Fri, 19 Oct 2012 13:38:36 +0000 (23:38 +1000)
committerNick Coghlan <ncoghlan@gmail.com>
Fri, 19 Oct 2012 13:38:36 +0000 (23:38 +1000)
Lib/test/test_import.py

index 36c4f5e3b934c20c3ebcb3d85598bc9fdf15d6d9..bffb1df6ff704cd4a53a2fbda5112d3a58be22e6 100644 (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')