summaryrefslogtreecommitdiff
path: root/Lib/test/test_format.py
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
commite2ca3aad850e251797d45d99166fb73b2bb408e8 (patch)
tree00d21d0ba0faea124719ea07f0e8228d18ce9fa4 /Lib/test/test_format.py
parent08eb8541c3bed820e87af98c8730d680fef5048a (diff)
parentc6de7baa36d48711a5fdc3125fa89263d6db0a55 (diff)
downloadcpython-e2ca3aad850e251797d45d99166fb73b2bb408e8.tar.gz
#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 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: