diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-28 11:09:09 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-28 11:09:09 (GMT) |
commit | 74ad75405c506b82c1dff1e47b3de46d4c2bd88f (patch) | |
tree | c99e604cf93a017724efc9c44a1054a064a7934b /Lib/test/test_pep277.py | |
parent | 3be00037d65178644b20a826f68eb3d0b25ccb5f (diff) | |
download | cpython-74ad75405c506b82c1dff1e47b3de46d4c2bd88f.zip cpython-74ad75405c506b82c1dff1e47b3de46d4c2bd88f.tar.gz cpython-74ad75405c506b82c1dff1e47b3de46d4c2bd88f.tar.bz2 |
test_pep277: format function argument 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 a7e2f00..eff7ba4 100644 --- a/Lib/test/test_pep277.py +++ b/Lib/test/test_pep277.py @@ -98,7 +98,7 @@ class UnicodeFileTests(unittest.TestCase): 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)) |