From: Serhiy Storchaka Date: Sat, 4 Apr 2015 14:29:28 +0000 (+0300) Subject: Issue #23466: Fixed expected error message in test_format. X-Git-Tag: v3.5.0a4~165 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=de1c27feaa75feaa2b23dae92f0b35abb3d9b792;p=thirdparty%2FPython%2Fcpython.git Issue #23466: Fixed expected error message in test_format. --- diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py index 2dad95844d51..9b13632591a3 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,