-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Pytest test discovery confused by packages #3936
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
Comments
I have a solution for this and can open a PR. |
@ericsnowcurrently Please ensure your python code works in this scenario, if it does, then we can close this. |
Feel free to give me a ping once #4605 is used so I can check against my test tree if it works too. |
Any time frame on when this will be released? It currently makes the pytest integration unusable for me. |
I compiled the latest master locally and for me it is working. If it isn't for you you may watch #4795 which seems to contain the actual implementation of the Python based discovery. |
Thanks @Flamefire. I just don't want to spend time compiling. I hope they supply an update soon. |
Seems to have not made it into release 1.33.1 :/ |
Can we get an update on when this will be released? |
This should be resolved in the most recent versions of the Python extension. If that is not the case then please create a new issue. (This one has a bit of outdated info, so better to start fresh.) |
Environment data
Expected behaviour
Tests are discovered correctly
Actual behaviour
Any package causes subsequently discovered tests to be considered IN the package
Steps to reproduce:
Logs
Example pytest output:
The test output parser will report the last one in file
/home/.../test/testb/test/testc/test_last.py
which is clearly wrong.Reason is that the packagePrefix is not reset
The text was updated successfully, but these errors were encountered: