Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6db1f6f

Browse files
Issue #26983: Fixed test_format failure.
Patch by SilentGhost.
1 parent 83815ae commit 6db1f6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def test_exc(formatstr, args, exception, excmsg):
274274
test_exc('%d', '1', TypeError, "%d format: a number is required, not str")
275275
test_exc('%x', '1', TypeError, "%x format: an integer is required, not str")
276276
test_exc('%x', 3.14, TypeError, "%x format: an integer is required, not float")
277-
test_exc('%g', '1', TypeError, "a float is required")
277+
test_exc('%g', '1', TypeError, "must be real number, not str")
278278
test_exc('no format', '1', TypeError,
279279
"not all arguments converted during string formatting")
280280
test_exc('%c', -1, OverflowError, "%c arg not in range(0x110000)")

0 commit comments

Comments
 (0)