[Python-checkins] cpython (3.2): #15304: fix wrong warning message in test.support.temp_cwd().
ezio.melotti
python-checkins at python.org
Fri Sep 21 15:53:31 CEST 2012
http://hg.python.org/cpython/rev/0b60dcabf7e6
changeset: 79086:0b60dcabf7e6
branch: 3.2
parent: 79084:e582ad1aee62
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Fri Sep 21 16:48:12 2012 +0300
summary:
#15304: fix wrong warning message in test.support.temp_cwd().
files:
Lib/test/support.py | 2 +-
Misc/NEWS | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Lib/test/support.py b/Lib/test/support.py
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -600,7 +600,7 @@
except OSError:
if not quiet:
raise
- warnings.warn('tests may fail, unable to change the CWD to ' + name,
+ warnings.warn('tests may fail, unable to change the CWD to ' + path,
RuntimeWarning, stacklevel=3)
try:
yield os.getcwd()
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -494,6 +494,9 @@
Tests
-----
+- Issue #15304: Fix warning message when os.chdir() fails inside
+ test.support.temp_cwd(). Patch by Chris Jerdonek.
+
- Issue #15802: Fix test logic in TestMaildir.test_create_tmp. Patch
by Serhiy Storchaka.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list