Skip to content

Conversation

@mariocj89
Copy link
Member

@mariocj89 mariocj89 commented May 17, 2021

Summary of changes

Fail when separators are used inconsistently to split the time porting
of a string. Even if more restrictive, we have warned that we were going
to fail on invalid cases of ISO formatted strings. This will prevent
invalid iso formatted strings from being unexpectedly parsed.

This Pr also fixes an xfail that was xfailing due to a typo. IIUC, 201202 is a valid ISO time but not a valid iso date, which is what was intended to be tested.

Closes None

Pull Request Checklist

  • Changes have tests
  • Authors have been added to AUTHORS.md
  • News fragment added in changelog.d. See CONTRIBUTING.md for details

@mariocj89 mariocj89 force-pushed the pu/strict-iso-sep branch from b7e4c5d to 09dbcd7 Compare May 17, 2021 07:02
mariocj89 added 2 commits May 19, 2021 21:00
Fail when separators are used inconsistently to split the time porting
of a string. Even if more restrictive, we have warned that we were going
to fail on invalid cases of ISO formatted strings. This will prevent
invalid iso formatted strings from being unexpectedly parsed.
The test was meant to validate `parse_isodate` but was using
`parse_isotime` instead. Move the test case to the list validating
invalid formats.
@mariocj89 mariocj89 force-pushed the pu/strict-iso-sep branch from 09dbcd7 to aa62cdc Compare May 19, 2021 19:00
@mariocj89 mariocj89 requested review from ffe4 and pganssle June 10, 2021 06:40
@mariocj89 mariocj89 self-assigned this Jun 10, 2021
@mariocj89 mariocj89 merged commit 54a756d into dateutil:master Jul 2, 2021
@mariocj89 mariocj89 deleted the pu/strict-iso-sep branch July 2, 2021 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants