Update test_grammar.py to 3.14.5#7913
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThis PR refines error handling in the RustPython compiler by updating error message text, expanding parse error to syntax error mapping with four new cases, and removing overly strict validation for exception type syntax. ChangesError Handling and Validation Refinements
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
📦 Library DependenciesThe following Lib/ modules were modified. Here are their dependencies: [ ] test: cpython/Lib/test/test_grammar.py (TODO: 12) dependencies: dependent tests: (no tests depend on grammar) [ ] test: cpython/Lib/test/test_syntax.py (TODO: 356) dependencies: dependent tests: (no tests depend on syntax) Legend:
|
| } | ||
| else if s.eq_ignore_ascii_case("positional patterns cannot follow keyword patterns") { | ||
| msg = "positional patterns follow keyword patterns".to_owned(); | ||
| } |
There was a problem hiding this comment.
I'd wish to extract this entire match block to its own function, I'll do it as a followup PR.
Summary by CodeRabbit