We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The assertion rewriting in pytest changes the source position for all nodes in the assertion to the source range of the assertion.
pytest/src/_pytest/assertion/rewrite.py
Lines 976 to 978 in 9515dfa
This causes problems for tools like executing which uses these source ranges (since python 3.11) to provide a mapping back to the ast-node.
This causes the following problems.
I already created a pull-request to solve this problem #12815.
The text was updated successfully, but these errors were encountered:
preserve source positions for assertion rewriting (pytest-dev#12818)
e371879
d7aa2d0
5412956
Successfully merging a pull request may close this issue.
The assertion rewriting in pytest changes the source position for all nodes in the assertion to the source range of the assertion.
pytest/src/_pytest/assertion/rewrite.py
Lines 976 to 978 in 9515dfa
This causes problems for tools like executing which uses these source ranges (since python 3.11) to provide a mapping back to the ast-node.
This causes the following problems.
I already created a pull-request to solve this problem #12815.
The text was updated successfully, but these errors were encountered: