execnet icon indicating copy to clipboard operation
execnet copied to clipboard

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

Open pytestbot opened this issue 8 years ago • 4 comments

  • 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

see Traceback 2 in this link

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

pytestbot avatar Jul 21 '17 10:07 pytestbot

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

ansipunk avatar Aug 06 '20 08:08 ansipunk

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?

nicoddemus avatar Aug 22 '20 15:08 nicoddemus

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

ansipunk avatar Sep 10 '20 06:09 ansipunk

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

ansipunk avatar Sep 17 '20 10:09 ansipunk