[Python-checkins] cpython (2.7): Issue #6074: Actually delete the source file in the test as intended
nick.coghlan
python-checkins at python.org
Fri Oct 19 15:17:59 CEST 2012
http://hg.python.org/cpython/rev/df83d3bbd934
changeset: 79831:df83d3bbd934
branch: 2.7
parent: 79827:321414874b26
user: Nick Coghlan <ncoghlan at gmail.com>
date: Fri Oct 19 23:17:48 2012 +1000
summary:
Issue #6074: Actually delete the source file in the test as intended
files:
Lib/test/test_import.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
--- a/Lib/test/test_import.py
+++ b/Lib/test/test_import.py
@@ -156,7 +156,7 @@
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')
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list