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:
Serhiy Storchaka 2016-02-08 01:06:11 +02:00
parent d5db14794b
commit c4b813d05d
3 changed files with 23 additions and 14 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