-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Occasional pytest_internalerror() was called on the worker
error
#153
Comments
So I think that pytest-dev/pytest-xdist#620 describes a similar issue with a link to pytest-dev/execnet#96. I commented at 620 so let's see what they say there before we hack around this. |
Could you try out #154? I think we may also need to tell Twisted to not configure the signals. You should be able to install it directly such as |
Hmm, #154 failed on my first run (but looks like it's fine on the second):
|
That traceback doesn't agree with the line numbers of the present code in the branch. pytest-twisted/pytest_twisted.py Lines 204 to 217 in 83baeb3
Anyways, run it for a bit and let me know how it goes. Pending no issues we can merge etc. |
D'oh, it didn't replace the existing pytest-twisted install because the version numbers were the same 🥲. Fixed! I'm not sure of a great way to test it -- I guess I'll try running a subset of our test suite a couple hundred times and see if it errors. |
I am sometimes seeing
|
I ran it 100 times, got the runtime warning ~25 times, but no crashes! |
Thanks. That is an intentional warning. pytest can be set to ignore specific warnings in case you like to make all warnings errors. But, this is a situation that nobody anywhere seems to want to have happening so it seemed reasonable to add the warning. That does confirm though that twisted itself doesn't end up failing out in that scenario, so that is good. I'll plan to get this merged soon. Thanks again for the report and for the testing. |
I didn’t notice you merged #154 a couple weeks ago; any plans for a new release? |
Should be released in https://pypi.org/project/pytest-twisted/1.14.0/. Sorry for the wait and thanks for the patience. |
Thanks!! |
We're seeing our test suite occasionally fail to start with
pytest_internalerror() was called on the worker
:I don't have a good reproducer and it's intermittent.
Dependencies:
Running Python 3.10.6 I believe.
The text was updated successfully, but these errors were encountered: