summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-04-04 14:29:28 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-04-04 14:29:28 (GMT)
commitde1c27feaa75feaa2b23dae92f0b35abb3d9b792 (patch)
treec99ec615584391d812709f481caab231e91ac4bc /Lib/test
parent04e6dba7dc59d2afa072ee53160f90d7090ad72d (diff)
downloadcpython-de1c27feaa75feaa2b23dae92f0b35abb3d9b792.zip
cpython-de1c27feaa75feaa2b23dae92f0b35abb3d9b792.tar.gz
cpython-de1c27feaa75feaa2b23dae92f0b35abb3d9b792.tar.bz2
Issue #23466: Fixed expected error message in test_format.
Diffstat (limited to 'Lib/test')
-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 2dad958..9b13632 100644
--- a/Lib/test/test_format.py
+++ b/Lib/test/test_format.py
@@ -272,7 +272,7 @@ class FormatTest(unittest.TestCase):
#test_exc(unicode('abc %\u3000','raw-unicode-escape'), 1, ValueError,
# "unsupported format character '?' (0x3000) at index 5")
test_exc('%d', '1', TypeError, "%d format: a number is required, not str")
- test_exc('%x', '1', TypeError, "%x 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('no format', '1', TypeError,