summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pep277.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-10-28 11:09:09 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-10-28 11:09:09 (GMT)
commit74ad75405c506b82c1dff1e47b3de46d4c2bd88f (patch)
treec99e604cf93a017724efc9c44a1054a064a7934b /Lib/test/test_pep277.py
parent3be00037d65178644b20a826f68eb3d0b25ccb5f (diff)
downloadcpython-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.py2
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))