bpo-42506: Fix unexpected output in test_format (GH-23564)

This commit is contained in:
Zackery Spytz 2020-11-30 01:39:12 -07:00 committed by GitHub
parent 6cc2c419f6
commit 9654592478
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -275,9 +275,9 @@ class FormatTest(unittest.TestCase):
test_exc_common('% %s', 1, ValueError,
"unsupported format character '%' (0x25) at index 2")
test_exc_common('%d', '1', TypeError,
"%d format: a number is required, not str")
"%d format: a real number is required, not str")
test_exc_common('%d', b'1', TypeError,
"%d format: a number is required, not bytes")
"%d format: a real number is required, not bytes")
test_exc_common('%x', '1', TypeError,
"%x format: an integer is required, not str")
test_exc_common('%x', 3.14, TypeError,