From: Victor Stinner Date: Thu, 28 Oct 2010 11:11:24 +0000 (+0000) Subject: test_pep277: format filename with ascii() on failure X-Git-Tag: v3.2a4~323 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7dae81b1ff68eec689cc37c194f995bd3031e589;p=thirdparty%2FPython%2Fcpython.git test_pep277: format filename with ascii() on failure "%a" instead of "%r" --- diff --git a/Lib/test/test_pep277.py b/Lib/test/test_pep277.py index eff7ba493f28..f1b7a59d71dd 100644 --- a/Lib/test/test_pep277.py +++ b/Lib/test/test_pep277.py @@ -99,7 +99,7 @@ class UnicodeFileTests(unittest.TestCase): 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):