Closed mtelka closed 3 months ago
Hi @mtelka,
That error looks a bit strange to me, why would that test (and only that test) fail to load pytest-xdist's -n
option? Weird. The header does show that only xdist
is active...
To avoid this issue we should simply do not install (or load) pytest plugins that are not needed to run tests for pytest-xdist
.
I found that when
pytest-xdist
is tested withpytest-console-scripts
orpytest-checkdocs
orpytest-randomly
installed and disabled using-p no:XXX
set inPYTEST_ADDOPTS
environment variable then the testing fails:Interestingly, testing pass when there are some other
pytest
plugins installed, for examplepytest-black
orpytest-mypy
.See also: https://github.com/kvas-it/pytest-console-scripts/issues/85