You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see in the logs test_bar cannot be collected due to a collection error. However in the second run also test_foo is exeuted again which is not expected. When pytest is executed w/o pytest-xdist the execution fails directly bc of the collection error. If the collection error is removed (still assert False will lead to an error), the behavior is as expected.
I use the latest pytest, pytest-xdist version and python 3.12.1
The text was updated successfully, but these errors were encountered:
Steps to reproduce
test_foo.py
with the contentdef test_1(): assert True
test_bar.py
with the contentpytest tests/ -n2 -vv
pytest tests/ -n2 --lf -vv --last-failed-no-failures none
As you can see in the logs
test_bar
cannot be collected due to a collection error. However in the second run alsotest_foo
is exeuted again which is not expected. When pytest is executed w/o pytest-xdist the execution fails directly bc of the collection error. If the collection error is removed (stillassert False
will lead to an error), the behavior is as expected.I use the latest pytest, pytest-xdist version and python 3.12.1
The text was updated successfully, but these errors were encountered: