Closed jaraco closed 3 years ago
The issue appears to be that pytest-cov varies depending on enablement of xdist, so when the enabler is bootstrapping coverage, it needs to make the command-line parameters for all enabled plugins are already parsed (not just those for cov).
In pypa/setuptools#2459, webknjaz is working on a patch that enables xdist. On that PR, I add the following change to rely on pytest-enabler to pass
-n auto
whenpytest-xdist
is enabled:But when I do, the tests fail with an INTERNALERROR in the pytest-cov codebase.
Running the tests with pytest-cov disabled (
tox -- -p no:cov
) allows the tests to run with xdist enabled.