diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-02-23 07:53:56 +0200 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-02-23 07:53:56 +0200 |
commit | c6de7baa36d48711a5fdc3125fa89263d6db0a55 (patch) | |
tree | 543059413e0cd099cd071e2f80710c41206d68e4 /Lib | |
parent | 313a19eff8587f9200435ce753c7ea3c1c0685ff (diff) | |
download | cpython-c6de7baa36d48711a5fdc3125fa89263d6db0a55.tar.gz |
#17217: fix UnicodeEncodeErrors errors in test_format by printing ASCII only.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_format.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py index 7fa950d9ef..44f1bb72ec 100644 --- a/Lib/test/test_format.py +++ b/Lib/test/test_format.py @@ -13,10 +13,10 @@ maxsize = support.MAX_Py_ssize_t def testformat(formatstr, args, output=None, limit=None, overflowok=False): if verbose: if output: - print("%r %% %r =? %r ..." %\ - (formatstr, args, output), end=' ') + print("{!a} % {!a} =? {!a} ...".format(formatstr, args, output), + end=' ') else: - print("%r %% %r works? ..." % (formatstr, args), end=' ') + print("{!a} % {!a} works? ...".format(formatstr, args), end=' ') try: result = formatstr % args except OverflowError: |