Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[red-knot] Improve tests relating to type inference for exception handlers #13643

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

AlexWaygood
Copy link
Member

Summary

As currently written, these tests break if you try to improve exception-handler control flow à la #13633, and they'll also break when we fix #13641. This PR uses reveal_type to make them robust to future improvements in our understanding of exception-handler control-flow.

Test Plan

cargo test -p red_knot_python_semantic --lib

@AlexWaygood AlexWaygood added the red-knot Multi-file analysis & type inference label Oct 5, 2024
@AlexWaygood AlexWaygood enabled auto-merge (squash) October 5, 2024 16:57
@AlexWaygood AlexWaygood merged commit 7c5a7d9 into main Oct 5, 2024
16 checks passed
@AlexWaygood AlexWaygood deleted the improve-redknot-tests branch October 5, 2024 16:59
Copy link
Contributor

github-actions bot commented Oct 5, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
red-knot Multi-file analysis & type inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[red-knot] support del statement and deletion of except handler names
1 participant