Unexpected error message when --dist worksteal
, -n0
and --pdb
flags are all set.
#999
Open
3 of 4 tasks
Pytest shows an unexpected error message with the following flags:
This is an issue for me since I have a
pytest.ini
set up like so:This allows me to have it so that the default pytest run without parameters runs all of the test in parallel mode in the most efficient way.
But quite often I run just one test file and when doing so I would like for pytest to not use the parallel mode so I add the
-n0
flag. This works as expected. I can also run pytest with just the--pdb
flag, this automatically disables the parallelism as well.But when I have both the
--pdb
and-n0
flags I get the error.Everything works as expected when
--dist worksteal
is not there in thepytest.ini
file but that can make the full parallel test suite run slower than it needs to be.This is a big issue for me since I often run tests on single test file many times over and I alternate between running it with pdb and without. It would be much more convininent and faster if I could just add and remove the
--pdb
flag instead of alternating between the--pdb
and-n0
flags.Also I think the error message describes the issue poorly since I already have the
-n0
flag on that is suggested by it.Thanks
Pytest version:
Operating system version:
pip list
from the virtual environment you are usingThe text was updated successfully, but these errors were encountered: