[issue36959] ISO date errors in _strptime are jumbled

Gordon P. Hemsley report at bugs.python.org
Sat May 18 21:10:45 EDT 2019


Gordon P. Hemsley <gphemsley at gphemsley.org> added the comment:

Ah yes, to be clear, I wasn't trying to suggest that the error messages themselves were wrong—just that they weren't triggering when the tests were expecting them to.

Some of the existing tests currently trigger the "unconverted data remains" ValueError from earlier in the method, but because the messages are not checked, that is not immediately obvious. I've also added new tests for additional scenarios that would presumably also be considered invalid, based on the existing ones.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36959>
_______________________________________


More information about the Python-bugs-list mailing list