Issue #26198: Fixed error messages for some argument parsing errors.

This commit is contained in:
Serhiy Storchaka 2016-02-08 01:20:21 +02:00
commit 3e17c788a8
2 changed files with 21 additions and 13 deletions

View file

@ -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