mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #23466: Fixed expected error message in test_format.
This commit is contained in:
parent
04e6dba7dc
commit
de1c27feaa
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue