Skip to content
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

IOError: cannot send to <Channel id=1 closed> #55

Open
pytestbot opened this issue Jul 21, 2017 · 4 comments
Open

IOError: cannot send to <Channel id=1 closed> #55

pytestbot opened this issue Jul 21, 2017 · 4 comments

Comments

@pytestbot
Copy link

A couple examples where this seems to happen with pytest

see Traceback 2 in this link

https://gist.github.com/khamidou/6b7e8702f8fc0e8dd251

@ansipunk
Copy link

ansipunk commented Aug 6, 2020

Hello! It happens to me as well! execnet version 1.7.1.
I have no idea what triggers it. The error occurs only when I run specific tests or a directory, however, it's totally OK when I run all of them

Traceback

@nicoddemus
Copy link
Member

Thanks!

Unfortunately it seems the worker is crashing hard (such as a segmentation fault) so the channel is closing prematurately.

If you execute that single test without xdist, does it work?

@ansipunk
Copy link

ansipunk commented Sep 10, 2020

Yes it does, both with pytest-xdist plugin uninstalled or with -n0 flag

@ansipunk
Copy link

ansipunk commented Sep 17, 2020

The issue is present when the tests are ran using -k regex argument, however, tests run fine when I use @pytest.mark.my_mark and pytest -m my_mark instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants