Closed mtelka closed 2 hours ago
Actually, the testing takes far more than one hour because it looks like it exponentially slows down. After ca 20 minutes the pytest-xdist
testing progress was at about 30%, after 50 minutes it was at 40%. After that I had to stop the test run.
Support for xdist was added in #53 (6 years ago) and improved in several following PRs. There have not yet been any issues reported. Thus I have no idea what could be the problem there.
Since the pytest-rerunfailures
is not needed to test pytest-xdist
then we should simply do not install (or load) it while testing pytest-xdist
.
I tried to run tests for
pytest-xdist
withpytest-rerunfailures
installed and disabled using-p no:rerunfailures
set inPYTEST_ADDOPTS
environment variable. I noticed that with this setup thepytest-xdist
tests takes very long time (over one hour on my testing machine) and CPU is heavily utilized. Without thepytest-rerunfailures
installed thepytest-xdist
testing completes in about 3 minutes on my machine.Version info: