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

code: fix IndexError crash in getstatementrange_ast #11996

Merged
merged 1 commit into from
Feb 17, 2024

Conversation

bluetech
Copy link
Member

Fix #11953.

I haven't been able to reproduce (needs a multiline statement which starts with a blank line?), though I didn't try very hard. However the fix is pretty innocent so I think it's OK to merge without a regression test.

@bluetech bluetech added the needs backport applied to PRs, indicates that it should be ported to the current bug-fix branch label Feb 17, 2024
Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

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

changelog?

@bluetech bluetech force-pushed the getstatementrange-index-error branch from 8f949de to 9f13d41 Compare February 17, 2024 16:44
@bluetech bluetech merged commit aebeb33 into pytest-dev:main Feb 17, 2024
24 checks passed
@bluetech bluetech deleted the getstatementrange-index-error branch February 17, 2024 16:59
@bluetech bluetech added backport 8.0.x and removed needs backport applied to PRs, indicates that it should be ported to the current bug-fix branch labels Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Internal IndexError when testing
2 participants