[Python-checkins] cpython (3.2): #15872: Be flexible with appending *.* in shutil.rmtree test case
hynek.schlawack
python-checkins at python.org
Mon Dec 10 12:07:01 CET 2012
http://hg.python.org/cpython/rev/2d953d47d634
changeset: 80809:2d953d47d634
branch: 3.2
parent: 80806:7ce8f4a70ccd
user: Hynek Schlawack <hs at ox.cx>
date: Mon Dec 10 12:01:28 2012 +0100
summary:
#15872: Be flexible with appending *.* in shutil.rmtree test case
The Windows buildbots seem to be unable to agree whether they need them or not.
files:
Lib/test/test_shutil.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -132,7 +132,7 @@
filename = os.path.join(tmpdir, "tstfile")
with self.assertRaises(OSError) as cm:
shutil.rmtree(filename)
- if os.name == 'nt':
+ if cm.exception.filename.endswith('*.*'):
rm_name = os.path.join(filename, '*.*')
else:
rm_name = filename
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list