IOError: cannot send to <Channel id=1 closed>
- Bitbucket: https://bitbucket.org/hpk42/execnet/issue/55
- Originally reported by: Anonymous
- Originally created at: 2017-04-04T19:57:58.121
A couple examples where this seems to happen with pytest
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
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?
Yes it does, both with pytest-xdist plugin uninstalled or with -n0 flag
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