From: Nick Coghlan Date: Fri, 19 Oct 2012 13:38:36 +0000 (+1000) Subject: Issue #6074: Actually delete the source file in the test as intended X-Git-Tag: v3.2.4rc1~426 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c71b4c7198703e54d9a7377edcdbac9b62eed487;p=thirdparty%2FPython%2Fcpython.git Issue #6074: Actually delete the source file in the test as intended --- diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 36c4f5e3b934..bffb1df6ff70 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -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')