summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2012-10-19 13:38:36 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2012-10-19 13:38:36 (GMT)
commitc71b4c7198703e54d9a7377edcdbac9b62eed487 (patch)
tree0f2c2ab6f7ef95b650e52693aa5e69568451c7d5
parent34937ce249864871bee129fbaa30a4dc0d317834 (diff)
downloadcpython-c71b4c7198703e54d9a7377edcdbac9b62eed487.zip
cpython-c71b4c7198703e54d9a7377edcdbac9b62eed487.tar.gz
cpython-c71b4c7198703e54d9a7377edcdbac9b62eed487.tar.bz2
Issue #6074: Actually delete the source file in the test as intended
-rw-r--r--Lib/test/test_import.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
index 36c4f5e..bffb1df 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')