summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_format.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-06-06 10:00:03 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-06-06 10:00:03 (GMT)
commit6db1f6f7aef964efa75d669c30e96766e145b06c (patch)
tree46cbb96cc2fb4e99f583fed40fb0514d0e62e29d /Lib/test/test_format.py
parent83815aeee846a2968ed54fe1b61410d40d49bab9 (diff)
downloadcpython-6db1f6f7aef964efa75d669c30e96766e145b06c.zip
cpython-6db1f6f7aef964efa75d669c30e96766e145b06c.tar.gz
cpython-6db1f6f7aef964efa75d669c30e96766e145b06c.tar.bz2
Issue #26983: Fixed test_format failure.
Patch by SilentGhost.
Diffstat (limited to 'Lib/test/test_format.py')
-rw-r--r--Lib/test/test_format.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py
index 9924fde..8afd5b8 100644
--- a/Lib/test/test_format.py
+++ b/Lib/test/test_format.py
@@ -274,7 +274,7 @@ class FormatTest(unittest.TestCase):
test_exc('%d', '1', TypeError, "%d format: a number is required, not str")
test_exc('%x', '1', TypeError, "%x format: an integer is required, not str")
test_exc('%x', 3.14, TypeError, "%x format: an integer is required, not float")
- test_exc('%g', '1', TypeError, "a float is required")
+ test_exc('%g', '1', TypeError, "must be real number, not str")
test_exc('no format', '1', TypeError,
"not all arguments converted during string formatting")
test_exc('%c', -1, OverflowError, "%c arg not in range(0x110000)")