Open jenshnielsen opened 5 days ago
Hmm, I'm not fully convinced that this is a Hypothesis bug (vs e.g. pytest-xdist); I'd also like to see this occur in a virtualenv with no other packages installed to ensure that it's really just the interaction of Hypothesis and pytest-xdist. Have you tried reproducing on other Python versions? From checking Qcode's CI logs it's not happening on Ubuntu, so I guess it is a Windows-specific issue.
Regardless though, thanks for reporting the issue, wherever it ends up we can't fix issues we don't know about 😁
I did a bit more digging. It seems that this only happens provided that both pytest-xdist and pytest-rerunfailures is installed. I can reproduce it in an environment that contains the following packages:
Package Version
-------------------- -------
attrs 24.2.0
colorama 0.4.6
execnet 2.1.1
hypothesis 6.113.0
iniconfig 2.0.0
packaging 24.1
pluggy 1.5.0
pytest 8.3.3
pytest-rerunfailures 14.0
pytest-xdist 3.6.1
sortedcontainers 2.4.0
Provided that I configure pytest to consider errors as warnings
[tool.pytest.ini_options]
filterwarnings = ['error']
and enable at least two xdist workers
pytest .\test_socket_warning.py -n 2
This only happens on windows and yes I agree that its not clear which of the three packages are triggering this.
Run the following no op test on windows using pytest + pytest-xdist with workers enabled triggers a Resource warning
when run as