summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_format.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-02-23 05:57:53 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-02-23 05:57:53 (GMT)
commit4ad8eec09e68f32720f49ecc20831328cf70c9c1 (patch)
treefec7e446d48677f16f7cfb4b522d98c0f71d0f31 /Lib/test/test_format.py
parenta420f0d0a08dbafe27e7f66796817e9a86ff20c4 (diff)
parent507eb09ad6b051821c50bdf723edd0c3119012e8 (diff)
downloadcpython-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.py6
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: