Skip to content

Commit 9654592

Browse files
authored
bpo-42506: Fix unexpected output in test_format (GH-23564)
1 parent 6cc2c41 commit 9654592

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_format.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ def test_common_format(self):
275275
test_exc_common('% %s', 1, ValueError,
276276
"unsupported format character '%' (0x25) at index 2")
277277
test_exc_common('%d', '1', TypeError,
278-
"%d format: a number is required, not str")
278+
"%d format: a real number is required, not str")
279279
test_exc_common('%d', b'1', TypeError,
280-
"%d format: a number is required, not bytes")
280+
"%d format: a real number is required, not bytes")
281281
test_exc_common('%x', '1', TypeError,
282282
"%x format: an integer is required, not str")
283283
test_exc_common('%x', 3.14, TypeError,

0 commit comments

Comments
 (0)