From c71b4c7198703e54d9a7377edcdbac9b62eed487 Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Fri, 19 Oct 2012 23:38:36 +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 36c4f5e3b93..bffb1df6ff7 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -158,7 +158,7 @@ def test_rewrite_pyc_with_read_only_source(self): 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')