summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-11-19 08:48:30 (GMT)
committerGeorg Brandl <georg@python.org>2006-11-19 08:48:30 (GMT)
commit283a1353a0834d53b230b22e8db9e7b4fcd220d0 (patch)
tree38cdb53e185f70ebb4c288f28b43a2dbcc39e17f /Lib/test
parentdb4f255c61d11836f734cea3329145a0f370f317 (diff)
downloadcpython-283a1353a0834d53b230b22e8db9e7b4fcd220d0.zip
cpython-283a1353a0834d53b230b22e8db9e7b4fcd220d0.tar.gz
cpython-283a1353a0834d53b230b22e8db9e7b4fcd220d0.tar.bz2
Patch [ 1586791 ] better error msgs for some TypeErrors
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_format.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py
index a9b3170..8bf5d6e 100644
--- a/Lib/test/test_format.py
+++ b/Lib/test/test_format.py
@@ -219,8 +219,8 @@ if have_unicode:
test_exc(unicode('abc %\u3000','raw-unicode-escape'), 1, ValueError,
"unsupported format character '?' (0x3000) at index 5")
-test_exc('%d', '1', TypeError, "int argument required")
-test_exc('%g', '1', TypeError, "float argument required")
+test_exc('%d', '1', TypeError, "int argument required, not str")
+test_exc('%g', '1', TypeError, "float argument required, not str")
test_exc('no format', '1', TypeError,
"not all arguments converted during string formatting")
test_exc('no format', u'1', TypeError,