From 097708aef633225c19e1117e6aec2b1c9ad3d98f Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Fri, 19 Oct 2012 23:17:48 +1000 Subject: [PATCH] Issue #6074: Actually delete the source file in the test as intended --- Lib/test/test_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- 2.47.3