[Python-checkins] r85880 - python/branches/py3k/Lib/test/test_pep277.py
victor.stinner
python-checkins at python.org
Thu Oct 28 13:11:24 CEST 2010
Author: victor.stinner
Date: Thu Oct 28 13:11:24 2010
New Revision: 85880
Log:
test_pep277: format filename 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:11:24 2010
@@ -99,7 +99,7 @@
filename = filename.encode(sys.getfilesystemencoding())
if check_fn_in_exception:
self.assertEqual(exc_filename, filename, "Function '%s(%a) failed "
- "with bad filename in the exception: %r" %
+ "with bad filename in the exception: %a" %
(fn.__name__, filename, exc_filename))
def test_failures(self):
More information about the Python-checkins
mailing list