[Python-checkins] r84208 - python/branches/py3k/Lib/test/test_pep277.py
victor.stinner
python-checkins at python.org
Thu Aug 19 19:35:00 CEST 2010
Author: victor.stinner
Date: Thu Aug 19 19:35:00 2010
New Revision: 84208
Log:
test_pep277: display the filename as ascii on failure
Modified:
python/branches/py3k/Lib/test/test_pep277.py
Modified: python/branches/py3k/Lib/test/test_pep277.py
==============================================================================
--- python/branches/py3k/Lib/test/test_pep277.py (original)
+++ python/branches/py3k/Lib/test/test_pep277.py Thu Aug 19 19:35:00 2010
@@ -132,7 +132,10 @@
for name in others:
if sys.platform == 'darwin' and normalize('NFD', name) in files:
# Mac OS X decomposes Unicode names. See comment above.
- os.stat(name)
+ try:
+ os.stat(name)
+ except OSError as err:
+ raise AssertionError("File %a doesn't exist" % name)
continue
self._apply_failure(open, name, IOError)
self._apply_failure(os.stat, name, OSError)
More information about the Python-checkins
mailing list