From: Nick Coghlan Date: Fri, 19 Oct 2012 13:17:48 +0000 (+1000) Subject: Issue #6074: Actually delete the source file in the test as intended X-Git-Tag: v2.7.4rc1~468 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=097708aef633225c19e1117e6aec2b1c9ad3d98f;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 c72bca041bab..f209d1b5b5ae 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -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')