Validate SyntaxError details tuple shape#7533
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 (1)
📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe change adds explicit tuple length validation to Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 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: [x] test: cpython/Lib/test/test_exceptions.py (TODO: 24) dependencies: dependent tests: (no tests depend on exception) Legend:
|
Validate
SyntaxError(message, details_tuple)shape handling inPySyntaxError::slot_init.Accept 4-item and 6-item tuples, and raise
TypeErrorfor invalid tuple lengths, including 5-item tuples withend_linenobut noend_offset.Also removes the
@unittest.expectedFailuremarker fromtest_incorrect_constructor.Summary by CodeRabbit