diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-02-23 05:57:53 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-02-23 05:57:53 (GMT) |
commit | 4ad8eec09e68f32720f49ecc20831328cf70c9c1 (patch) | |
tree | fec7e446d48677f16f7cfb4b522d98c0f71d0f31 /Lib/test/test_format.py | |
parent | a420f0d0a08dbafe27e7f66796817e9a86ff20c4 (diff) | |
parent | 507eb09ad6b051821c50bdf723edd0c3119012e8 (diff) | |
download | cpython-4ad8eec09e68f32720f49ecc20831328cf70c9c1.zip cpython-4ad8eec09e68f32720f49ecc20831328cf70c9c1.tar.gz cpython-4ad8eec09e68f32720f49ecc20831328cf70c9c1.tar.bz2 |
#17217: merge with 3.2.
Diffstat (limited to 'Lib/test/test_format.py')
-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 b6e2540..f8f5420 100644 --- a/Lib/test/test_format.py +++ b/Lib/test/test_format.py @@ -14,10 +14,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: |