diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-28 11:11:24 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-28 11:11:24 (GMT) |
commit | 7dae81b1ff68eec689cc37c194f995bd3031e589 (patch) | |
tree | ec50c3d6c8ff44801f296a6cf7b315c9787c4e3a /Lib/test/test_pep277.py | |
parent | 74ad75405c506b82c1dff1e47b3de46d4c2bd88f (diff) | |
download | cpython-7dae81b1ff68eec689cc37c194f995bd3031e589.zip cpython-7dae81b1ff68eec689cc37c194f995bd3031e589.tar.gz cpython-7dae81b1ff68eec689cc37c194f995bd3031e589.tar.bz2 |
test_pep277: format filename with ascii() on failure
"%a" instead of "%r"
Diffstat (limited to 'Lib/test/test_pep277.py')
-rw-r--r-- | Lib/test/test_pep277.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pep277.py b/Lib/test/test_pep277.py index eff7ba4..f1b7a59 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): |