diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-02-23 05:58:28 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-02-23 05:58:28 (GMT) |
commit | 33136fa6e7607bb94e743518800805c317a37df4 (patch) | |
tree | d1c74d993a09683569949d1641ae38335d7526c7 /Lib/test/test_format.py | |
parent | 78b24e6c7fbfa341933c3c1ac4637dec0cfc8a3d (diff) | |
parent | 4ad8eec09e68f32720f49ecc20831328cf70c9c1 (diff) | |
download | cpython-33136fa6e7607bb94e743518800805c317a37df4.zip cpython-33136fa6e7607bb94e743518800805c317a37df4.tar.gz cpython-33136fa6e7607bb94e743518800805c317a37df4.tar.bz2 |
#17217: merge with 3.3.
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 e6b0d20..bc56fbc 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: |