[Python-checkins] cpython: Issue #23466: Fixed expected error message in test_format.

serhiy.storchaka python-checkins at python.org
Sat Apr 4 16:30:12 CEST 2015


https://hg.python.org/cpython/rev/11e6986c794d
changeset:   95442:11e6986c794d
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Sat Apr 04 17:29:28 2015 +0300
summary:
  Issue #23466: Fixed expected error message in test_format.

files:
  Lib/test/test_format.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py
--- a/Lib/test/test_format.py
+++ b/Lib/test/test_format.py
@@ -272,7 +272,7 @@
         #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,

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list