summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-02-23 07:57:53 +0200
committerEzio Melotti <ezio.melotti@gmail.com>2013-02-23 07:57:53 +0200
commit4ad8eec09e68f32720f49ecc20831328cf70c9c1 (patch)
treefec7e446d48677f16f7cfb4b522d98c0f71d0f31
parenta420f0d0a08dbafe27e7f66796817e9a86ff20c4 (diff)
parent507eb09ad6b051821c50bdf723edd0c3119012e8 (diff)
downloadcpython-git-4ad8eec09e68f32720f49ecc20831328cf70c9c1.tar.gz
#17217: merge with 3.2.
-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 b6e25409db..f8f5420040 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: