mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #26198: Fixed error messages for some argument parsing errors.
This commit is contained in:
commit
3e17c788a8
2 changed files with 21 additions and 13 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