[Python-checkins] cpython (3.2): Issue #6074: Actually delete the source file in the test as intended
nick.coghlan
python-checkins at python.org
Fri Oct 19 15:41:10 CEST 2012
http://hg.python.org/cpython/rev/8cf7f6fe4282
changeset: 79836:8cf7f6fe4282
branch: 3.2
parent: 79828:1856d57abfc8
user: Nick Coghlan <ncoghlan at gmail.com>
date: Fri Oct 19 23:38:36 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
@@ -158,7 +158,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