[Python-checkins] r85879 - python/branches/py3k/Lib/test/test_pep277.py
victor.stinner
python-checkins at python.org
Thu Oct 28 13:09:10 CEST 2010
Author: victor.stinner
Date: Thu Oct 28 13:09:09 2010
New Revision: 85879
Log:
test_pep277: format function argument with ascii() on failure
"%a" instead of "%r"
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 Oct 28 13:09:09 2010
@@ -98,7 +98,7 @@
if isinstance(exc_filename, bytes):
filename = filename.encode(sys.getfilesystemencoding())
if check_fn_in_exception:
- self.assertEqual(exc_filename, filename, "Function '%s(%r) failed "
+ self.assertEqual(exc_filename, filename, "Function '%s(%a) failed "
"with bad filename in the exception: %r" %
(fn.__name__, filename, exc_filename))
More information about the Python-checkins
mailing list