From 7dae81b1ff68eec689cc37c194f995bd3031e589 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 28 Oct 2010 11:11:24 +0000 Subject: [PATCH] test_pep277: format filename with ascii() on failure "%a" instead of "%r" --- Lib/test/test_pep277.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_pep277.py b/Lib/test/test_pep277.py index eff7ba493f..f1b7a59d71 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): -- 2.40.0