mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Issue #26198: Fixed error messages for some argument parsing errors.
Fixed the documented about buffer overflow error for "es#" and "et#" format units.
This commit is contained in:
parent
d5db14794b
commit
c4b813d05d
3 changed files with 23 additions and 14 deletions
|
|
@ -489,7 +489,7 @@ class SkipitemTest(unittest.TestCase):
|
|||
format.encode("ascii"), keywords)
|
||||
when_not_skipped = False
|
||||
except TypeError as e:
|
||||
s = "argument 1 must be impossible<bad format char>, not int"
|
||||
s = "argument 1 (impossible<bad format char>)"
|
||||
when_not_skipped = (str(e) == s)
|
||||
except RuntimeError as e:
|
||||
when_not_skipped = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue