Repository navigation
_zoneinfo: reject empty quoted POSIX TZ abbreviations - #9017
Conversation
Split the Python 3.14-compatible parser guard from RustPython#8954. Cover empty standard and daylight-saving abbreviations and preserve valid quoted names. Assisted-by: OpenAI Codex:model identifier unavailable
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe POSIX time-zone abbreviation parser now rejects empty angle-bracket abbreviations. Tests verify that empty abbreviations raise ChangesTime-zone abbreviation parsing
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The parser and tests cover the intended rejection without an identified regression. The change is ready to merge after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Rename the snippet as requested during review without changing test contents. Assisted-by: OpenAI Codex:model identifier unavailable
Merging this PR will not alter performance
Comparing Footnotes
|
Summary
Split the Python 3.14-compatible empty-abbreviation fix from #8954.
Reject an empty quoted abbreviation in the native POSIX TZ rule parser, for both standard and daylight-saving names. CPython 3.14 already rejects these inputs. Keep valid quoted names working.
Add a focused snippet using a minimal TZif fixture. The existing shared canonical cases do not cover empty quoted abbreviations; this leaves the pure-Python library and its assertions unchanged.
Validation
d0dfcb54through the snippet runner:ValueErrorwas not raised for<>5.CTZStrTestcanonical tests pass unchanged.--no-run, excluding WASM, venvlauncher, and C API; the separate C-API test target also compiles with--no-run.Local runtime validation is limited to the focused snippet and canonical tests above. Broad Rust test targets were compile-checked, not executed.
Reference: CPython 3.14
parse_abbr.AI assistance
OpenAI Codex assisted with auditing the split, implementation, regression coverage, and validation. The runtime does not expose an exact model identifier.
Summary by CodeRabbit
ValueErrorinstead of being accepted as empty names.