Skip to content

gh-156067: Fix two error handling issues in _zoneinfo.load_data() - #156068

Open
StanFromIreland wants to merge 2 commits into
python:mainfrom
StanFromIreland:156067
Open

gh-156067: Fix two error handling issues in _zoneinfo.load_data()#156068
StanFromIreland wants to merge 2 commits into
python:mainfrom
StanFromIreland:156067

Conversation

@StanFromIreland

@StanFromIreland StanFromIreland commented Aug 19, 2026

Copy link
Copy Markdown
Member

@StanFromIreland

Copy link
Copy Markdown
Member Author

@serhiy-storchaka can you please take a little look?

@hu-jeff hu-jeff left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like something that would need tests, but not entirely sure on the standards here. Have a small suggestion on simplification!

Comment thread Modules/_zoneinfo.c Outdated
@StanFromIreland

Copy link
Copy Markdown
Member Author

This feels like something that would need tests

I don't think they're worth it here. We don't have tests for every single condition, and as I noted on the issue, getting a negative transition index in practice is impossible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants