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

Files not correctly reported starting in 0.3.0 #105

Open
ke-kialo opened this issue Feb 3, 2025 · 1 comment
Open

Files not correctly reported starting in 0.3.0 #105

ke-kialo opened this issue Feb 3, 2025 · 1 comment
Assignees

Comments

@ke-kialo
Copy link

ke-kialo commented Feb 3, 2025

When upgrading to 0.3.0 we noticed that the filenames of the failing tests were no longer correctly reported. This did not happen in 0.2.0 for us. However, also in 0.2.0 we saw incorrect line numbers for the failing tests.
In 0.3.0, the filename and line reported instead points to code within a hook (@pytest.hookimpl(tryfirst=True)) where we wrap pyfuncitem.obj in a lambda.

@edgarrmondragon
Copy link
Collaborator

@ke-kialo can you share a MRE? It's definitely tricky to track the code when there's plugins and hooks, and we don't have a test case which uses something like that.

@edgarrmondragon edgarrmondragon self-assigned this Feb 5, 2025
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

No branches or pull requests

2 participants