* Package: dev-python/execnet-1.4.1  * Repository: gentoo  * Maintainer: grozin@gentoo.org python@gentoo.org  * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_4 test userland_GNU  * FEATURES: preserve-libs sandbox test userpriv usersandbox >>> Unpacking source... >>> Unpacking execnet-1.4.1.tar.gz to /var/tmp/portage/dev-python/execnet-1.4.1/work >>> Source unpacked in /var/tmp/portage/dev-python/execnet-1.4.1/work >>> Preparing source in /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1 ... * python2_7: running distutils-r1_run_phase distutils-r1_python_compile /usr/bin/python2.7 setup.py build running build running build_py creating /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet copying execnet/xspec.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet copying execnet/rsync.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet copying execnet/gateway_socket.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet copying execnet/rsync_remote.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet copying execnet/gateway_base.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet copying execnet/_version.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet copying execnet/multi.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet copying execnet/gateway_io.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet copying execnet/deprecated.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet copying execnet/gateway.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet copying execnet/gateway_bootstrap.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet copying execnet/__init__.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet creating /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet/script copying execnet/script/socketserver.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet/script copying execnet/script/loop_socketserver.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet/script copying execnet/script/xx.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet/script copying execnet/script/__init__.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet/script copying execnet/script/socketserverservice.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet/script copying execnet/script/shell.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet/script copying execnet/script/quitserver.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet/script warning: build_py: byte-compiling is disabled, skipping. * python3_4: running distutils-r1_run_phase distutils-r1_python_compile /usr/bin/python3.4 setup.py build running build running build_py creating /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet copying execnet/xspec.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet copying execnet/rsync.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet copying execnet/gateway_socket.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet copying execnet/rsync_remote.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet copying execnet/gateway_base.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet copying execnet/_version.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet copying execnet/multi.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet copying execnet/gateway_io.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet copying execnet/deprecated.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet copying execnet/gateway.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet copying execnet/gateway_bootstrap.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet copying execnet/__init__.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet creating /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet/script copying execnet/script/socketserver.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet/script copying execnet/script/loop_socketserver.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet/script copying execnet/script/xx.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet/script copying execnet/script/__init__.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet/script copying execnet/script/socketserverservice.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet/script copying execnet/script/shell.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet/script copying execnet/script/quitserver.py -> /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python3_4/lib/execnet/script warning: build_py: byte-compiling is disabled, skipping. * python3_4: running distutils-r1_run_phase python_compile_all >>> Source compiled. >>> Test phase: dev-python/execnet-1.4.1 * python2_7: running distutils-r1_run_phase python_test ============================= test session starts ============================== platform linux2 -- Python 2.7.12, pytest-3.0.3, py-1.4.30, pluggy-0.4.0 gateway test setup scope: session execnet: /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1-python2_7/lib/execnet/__init__.py -- 1.4.1 rootdir: /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1, inifile: tox.ini collected 944 items testing/test_basics.py ...............sss.ss.sss.ss.sss.ss....... testing/test_channel.py ..s...s...s...s...s...s...s...s...s...s...s...s...s...s...s...s...s...s...s...s...s...s...s...s...s...s...s...s...s...s. testing/test_gateway.py ..s...s...s...s...s...s...s...s...s...s...s...s...s...s...s...s...s...s......s.ss testing/test_multi.py ..s.xx testing/test_termination.py .sss.ss.xsssxss testing/test_threadpool.py ......x....... testing/test_basics.py sssssssssssssssssssss testing/test_channel.py ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss testing/test_gateway.py sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss testing/test_multi.py ssssss testing/test_termination.py sssssssssssssss testing/test_threadpool.py ssssssssssssss testing/test_basics.py .sssxss.sssxss....... testing/test_channel.py .Exception AttributeError: "class Gateway has no attribute '_trace'" in > ignored Fs..Fs..Fs..Fs..Fs..Fs..Fs...s...s..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs...s. testing/test_gateway.py ..s...s..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs..Fs......s.ss testing/test_multi.py ..s.xx testing/test_termination.py .sssxssxxsssxss testing/test_threadpool.py ......x......s testing/test_basics.py .sss.ss.sss.ss............sss.ss.. testing/test_channel.py .s testing/test_compatibility_regressions.py . testing/test_fixes.py .. testing/test_gateway.py .............s testing/test_multi.py .............. testing/test_rsync.py ........... testing/test_serializer.py ....................................... testing/test_termination.py ..sss.ss testing/test_xspec.py ..................ss..ssss. =========================== short test summary info ============================ XFAIL testing/test_multi.py::test_safe_terminate[thread] reason: execution model 'thread' does not support task count XFAIL testing/test_multi.py::test_safe_terminate2[thread] reason: execution model 'thread' does not support task count XFAIL testing/test_termination.py::test_terminate_implicit_does_trykill[thread-sys.executable] reason: only os threading model supported XFAIL testing/test_termination.py::test_terminate_implicit_does_trykill[thread-python2.7] reason: only os threading model supported XFAIL testing/test_threadpool.py::test_limited_size[thread] WorkerPool does not implement limited size XFAIL testing/test_basics.py::test_io_message[gevent-python2.7] reason: cannot run 'gevent' execmodel with bare python2.7 XFAIL testing/test_basics.py::test_popen_io[gevent-python2.7] reason: cannot run 'gevent' execmodel with bare python2.7 XFAIL testing/test_multi.py::test_safe_terminate[gevent] reason: execution model 'gevent' does not support task count XFAIL testing/test_multi.py::test_safe_terminate2[gevent] reason: execution model 'gevent' does not support task count XFAIL testing/test_termination.py::test_exit_blocked_slave_execution_gateway[gevent-python2.7] reason: cannot run 'gevent' execmodel with bare python2.7 XFAIL testing/test_termination.py::test_endmarker_delivery_on_remote_killterm[gevent] reason: test and execnet not compatible to greenlets yet XFAIL testing/test_termination.py::test_terminate_implicit_does_trykill[gevent-sys.executable] reason: only os threading model supported XFAIL testing/test_termination.py::test_terminate_implicit_does_trykill[gevent-python2.7] reason: cannot run 'gevent' execmodel with bare python2.7 XFAIL testing/test_threadpool.py::test_limited_size[gevent] WorkerPool does not implement limited size SKIP [17] /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1/testing/conftest.py:148: no python3.2 found SKIP [1] testing/test_gateway.py:416: condition: sys.version<"3.0" SKIP [17] /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1/testing/conftest.py:148: no python2.6 found SKIP [17] /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1/testing/conftest.py:148: no jython found SKIP [17] /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1/testing/conftest.py:148: no python3.3 found SKIP [17] /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1/testing/conftest.py:148: no pypy found SKIP [1] /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1/testing/test_threadpool.py:186: can only run with threading SKIP [1] /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1/testing/test_xspec.py:209: Vagrant binary not in PATH SKIP [1] /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1/testing/test_xspec.py:162: cpython2.5 not found SKIP [107] /usr/lib64/python2.7/site-packages/_pytest/config.py:1147: no 'gspecs' option found SKIP [1] testing/test_channel.py:372: condition: sys.version<"3.0" SKIP [237] /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1/testing/conftest.py:200: could not import 'eventlet' SKIP [1] /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1/testing/test_xspec.py:176: cpython2.6 not found =================================== FAILURES =================================== ________ TestChannelBasicBehaviour.test_serialize_error[gevent-socket] _________ self = gw = def test_serialize_error(self, gw): > ch = gw.remote_exec("channel.send(ValueError(42))") testing/test_channel.py:16: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 119 data = 'M\x00\x00\x00\x1cchannel.send(ValueError(42))LJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError TestChannelBasicBehaviour.test_channel_close_and_then_receive_error[gevent-socket] self = gw = def test_channel_close_and_then_receive_error(self, gw): > channel = gw.remote_exec('raise ValueError') testing/test_channel.py:21: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 121 data = 'M\x00\x00\x00\x10raise ValueErrorLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError TestChannelBasicBehaviour.test_channel_finish_and_then_EOFError[gevent-socket] self = gw = def test_channel_finish_and_then_EOFError(self, gw): > channel = gw.remote_exec('channel.send(42)') testing/test_channel.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 123 data = 'M\x00\x00\x00\x10channel.send(42)LJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError _____ TestChannelBasicBehaviour.test_waitclose_timeouterror[gevent-socket] _____ self = gw = def test_waitclose_timeouterror(self, gw): > channel = gw.remote_exec("channel.receive()") testing/test_channel.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 125 data = 'M\x00\x00\x00\x11channel.receive()LJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError ____ TestChannelBasicBehaviour.test_channel_receive_timeout[gevent-socket] _____ self = gw = def test_channel_receive_timeout(self, gw): > channel = gw.remote_exec('channel.send(channel.receive())') testing/test_channel.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 127 data = 'M\x00\x00\x00\x1fchannel.send(channel.receive())LJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError TestChannelBasicBehaviour.test_channel_receive_internal_timeout[gevent-socket] self = gw = monkeypatch = <_pytest.monkeypatch.MonkeyPatch instance at 0x7fddcce52098> def test_channel_receive_internal_timeout(self, gw, monkeypatch): channel = gw.remote_exec(""" import time time.sleep(0.5) channel.send(1) > """) testing/test_channel.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 129 data = 'M\x00\x00\x00-\nimport time\ntime.sleep(0.5)\nchannel.send(1)\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError TestChannelBasicBehaviour.test_channel_close_and_then_receive_error_multiple[gevent-socket] self = gw = def test_channel_close_and_then_receive_error_multiple(self, gw): > channel = gw.remote_exec('channel.send(42) ; raise ValueError') testing/test_channel.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 131 data = 'M\x00\x00\x00#channel.send(42) ; raise ValueErrorLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError ____ TestChannelBasicBehaviour.test_channel_error_reporting[gevent-socket] _____ self = gw = def test_channel_error_reporting(self, gw): > channel = gw.remote_exec('def foo():\n return foobar()\nfoo()\n') testing/test_channel.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 137 data = 'M\x00\x00\x00#def foo():\n return foobar()\nfoo()\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError ______ TestChannelBasicBehaviour.test_channel_syntax_error[gevent-socket] ______ self = gw = def test_channel_syntax_error(self, gw): # missing colon > channel = gw.remote_exec('def foo()\n return 1\nfoo()\n') testing/test_channel.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 139 data = 'M\x00\x00\x00\x1adef foo()\n return 1\nfoo()\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError __________ TestChannelBasicBehaviour.test_channel_iter[gevent-socket] __________ self = gw = def test_channel_iter(self, gw): channel = gw.remote_exec(""" for x in range(3): channel.send(x) > """) testing/test_channel.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 141 data = 'M\x00\x00\x00&\nfor x in range(3):\n channel.send(x)\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError ___ TestChannelBasicBehaviour.test_channel_pass_in_structure[gevent-socket] ____ self = gw = def test_channel_pass_in_structure(self, gw): channel = gw.remote_exec(''' ch1, ch2 = channel.receive() data = ch1.receive() ch2.send(data+1) > ''') testing/test_channel.py:99: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 143 data = 'M\x00\x00\x00D\nch1, ch2 = channel.receive()\ndata = ch1.receive()\nch2.send(data+1)\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError _______ TestChannelBasicBehaviour.test_channel_multipass[gevent-socket] ________ self = gw = def test_channel_multipass(self, gw): channel = gw.remote_exec(''' channel.send(channel) xchan = channel.receive() assert xchan == channel > ''') testing/test_channel.py:112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 145 data = 'M\x00\x00\x00I\nchannel.send(channel)\nxchan = channel.receive()\nassert xchan == channel\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError __ TestChannelBasicBehaviour.test_channel_passing_over_channel[gevent-socket] __ self = gw = def test_channel_passing_over_channel(self, gw): channel = gw.remote_exec(''' c = channel.gateway.newchannel() channel.send(c) c.send(42) > ''') testing/test_channel.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 147 data = 'M\x00\x00\x00=\nc = channel.gateway.newchannel()\nchannel.send(c)\nc.send(42)\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError ___ TestChannelBasicBehaviour.test_channel_receiver_callback[gevent-socket] ____ self = gw = def test_channel_receiver_callback(self, gw): l = [] # channel = gw.newchannel(receiver=l.append) channel = gw.remote_exec(source=''' channel.send(42) channel.send(13) channel.send(channel.gateway.newchannel()) > ''') testing/test_channel.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 149 data = 'M\x00\x00\x00N\nchannel.send(42)\nchannel.send(13)\nchannel.send(channel.gateway.newchannel())\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError _ TestChannelBasicBehaviour.test_channel_callback_after_receive[gevent-socket] _ self = gw = def test_channel_callback_after_receive(self, gw): l = [] channel = gw.remote_exec(source=''' channel.send(42) channel.send(13) channel.send(channel.gateway.newchannel()) > ''') testing/test_channel.py:158: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 151 data = 'M\x00\x00\x00N\nchannel.send(42)\nchannel.send(13)\nchannel.send(channel.gateway.newchannel())\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError _____ TestChannelBasicBehaviour.test_waiting_for_callbacks[gevent-socket] ______ self = gw = def test_waiting_for_callbacks(self, gw): l = [] def callback(msg): import time time.sleep(0.2) l.append(msg) channel = gw.remote_exec(source=''' channel.send(42) > ''') testing/test_channel.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 153 data = 'M\x00\x00\x00\x12\nchannel.send(42)\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError _ TestChannelBasicBehaviour.test_channel_callback_stays_active[gevent-socket] __ self = gw = def test_channel_callback_stays_active(self, gw): > self.check_channel_callback_stays_active(gw, earlyfree=True) testing/test_channel.py:183: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ testing/test_channel.py:203: in check_channel_callback_stays_active ''') ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 155 data = 'M\x00\x00\x01\x17\ntry:\n import thread\nexcept ImportError:\n import _thread as thread\nimport time\ndef produ...100)\nchannel2 = channel.receive()\nthread.start_new_thread(producer, (channel2,))\ndel channel2\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError _ TestChannelBasicBehaviour.test_channel_callback_remote_freed[gevent-socket] __ self = gw = @needs_early_gc def test_channel_callback_remote_freed(self, gw): > channel = self.check_channel_callback_stays_active(gw, earlyfree=False) testing/test_channel.py:223: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ testing/test_channel.py:203: in check_channel_callback_stays_active ''') ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 157 data = 'M\x00\x00\x01\x17\ntry:\n import thread\nexcept ImportError:\n import _thread as thread\nimport time\ndef produ...100)\nchannel2 = channel.receive()\nthread.start_new_thread(producer, (channel2,))\ndel channel2\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError ___ TestChannelBasicBehaviour.test_channel_endmarker_callback[gevent-socket] ___ self = gw = def test_channel_endmarker_callback(self, gw): l = [] channel = gw.remote_exec(source=''' channel.send(42) channel.send(13) channel.send(channel.gateway.newchannel()) > ''') testing/test_channel.py:233: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 159 data = 'M\x00\x00\x00N\nchannel.send(42)\nchannel.send(13)\nchannel.send(channel.gateway.newchannel())\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError TestChannelBasicBehaviour.test_channel_endmarker_callback_error[gevent-socket] self = gw = def test_channel_endmarker_callback_error(self, gw): q = gw.execmodel.queue.Queue() channel = gw.remote_exec(source=''' raise ValueError() > ''') testing/test_channel.py:246: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 161 data = 'M\x00\x00\x00\x14\nraise ValueError()\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError _____ TestChannelBasicBehaviour.test_channel_callback_error[gevent-socket] _____ self = gw = def test_channel_callback_error(self, gw): channel = gw.remote_exec(""" def f(item): raise ValueError(42) ch = channel.gateway.newchannel() ch.setcallback(f) channel.send(ch) channel.receive() assert ch.isclosed() > """) testing/test_channel.py:263: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 163 data = 'M\x00\x00\x00\x93\ndef f(item):\n raise ValueError(42)\nch = channel.gateway.newchannel()\nch.setcallback(f)\nchannel.send(ch)\nchannel.receive()\nassert ch.isclosed()\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError ____________ TestChannelFile.test_channel_file_write[gevent-socket] ____________ self = gw = def test_channel_file_write(self, gw): channel = gw.remote_exec(""" f = channel.makefile() f.write("hello world\\n") f.close() channel.send(42) > """) testing/test_channel.py:281: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 165 data = 'M\x00\x00\x00L\nf = channel.makefile()\nf.write("hello world\\n")\nf.close()\nchannel.send(42)\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError _________ TestChannelFile.test_channel_file_write_error[gevent-socket] _________ self = gw = def test_channel_file_write_error(self, gw): > channel = gw.remote_exec("pass") testing/test_channel.py:288: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 167, data = 'M\x00\x00\x00\x04passLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError _________ TestChannelFile.test_channel_file_proxyclose[gevent-socket] __________ self = gw = def test_channel_file_proxyclose(self, gw): channel = gw.remote_exec(""" f = channel.makefile(proxyclose=True) f.write("hello world") f.close() channel.send(42) > """) testing/test_channel.py:300: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 169 data = 'M\x00\x00\x00Y\nf = channel.makefile(proxyclose=True)\nf.write("hello world")\nf.close()\nchannel.send(42)\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError ____________ TestChannelFile.test_channel_file_read[gevent-socket] _____________ self = gw = def test_channel_file_read(self, gw): channel = gw.remote_exec(""" f = channel.makefile(mode='r') s = f.read(2) channel.send(s) s = f.read(5) channel.send(s) > """) testing/test_channel.py:312: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 171 data = "M\x00\x00\x00\\\nf = channel.makefile(mode='r')\ns = f.read(2)\nchannel.send(s)\ns = f.read(5)\nchannel.send(s)\nLJ@\x00\x00\x00\x03Q" def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError _________ TestChannelFile.test_channel_file_read_empty[gevent-socket] __________ self = gw = def test_channel_file_read_empty(self, gw): > channel = gw.remote_exec("pass") testing/test_channel.py:320: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 173, data = 'M\x00\x00\x00\x04passLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError _______ TestChannelFile.test_channel_file_readline_remote[gevent-socket] _______ self = gw = def test_channel_file_readline_remote(self, gw): channel = gw.remote_exec(""" channel.send('123\\n45') > """) testing/test_channel.py:330: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 175 data = "M\x00\x00\x00\x19\nchannel.send('123\\n45')\nLJ@\x00\x00\x00\x03Q" def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError ____________ TestBasicGateway.test_attribute__name__[gevent-socket] ____________ self = gw = def test_attribute__name__(self, gw): > channel = gw.remote_exec("channel.send(__name__)") testing/test_gateway.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 179 data = 'M\x00\x00\x00\x16channel.send(__name__)LJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError __________ TestBasicGateway.test_gateway_status_simple[gevent-socket] __________ self = gw = def test_gateway_status_simple(self, gw): > status = gw.remote_status() testing/test_gateway.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:90: in remote_status self._send(Message.STATUS, channel.id) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 0, channelid = 181, data = '' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError _ TestBasicGateway.test_exc_info_is_clear_after_gateway_startup[gevent-socket] _ self = gw = def test_exc_info_is_clear_after_gateway_startup(self, gw): ch = gw.remote_exec(""" import traceback, sys excinfo = sys.exc_info() if excinfo != (None, None, None): r = traceback.format_exception(*excinfo) else: r = 0 channel.send(r) > """) testing/test_gateway.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 183 data = 'M\x00\x00\x00\x9f\nimport traceback, sys\nexcinfo = sys.exc_info()\nif excinfo != (None, None, None):\n r = traceback.format_exception(*excinfo)\nelse:\n r = 0\nchannel.send(r)\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError _____ TestBasicGateway.test_gateway_status_no_real_channel[gevent-socket] ______ self = gw = def test_gateway_status_no_real_channel(self, gw): numchan = gw._channelfactory.channels() > gw.remote_status() testing/test_gateway.py:64: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:90: in remote_status self._send(Message.STATUS, channel.id) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 0, channelid = 185, data = '' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError ___________ TestBasicGateway.test_gateway_status_busy[gevent-socket] ___________ self = gw = def test_gateway_status_busy(self, gw): > numchannels = gw.remote_status().numchannels testing/test_gateway.py:72: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:90: in remote_status self._send(Message.STATUS, channel.id) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 0, channelid = 187, data = '' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError ___________ TestBasicGateway.test_remote_exec_module[gevent-socket] ____________ self = tmpdir = local('/var/tmp/portage/dev-python/execnet-1.4.1/temp/pytest-of-portage/pytest-0/test_remote_exec_module_gevent1') gw = def test_remote_exec_module(self, tmpdir, gw): p = tmpdir.join("remotetest.py") p.write("channel.send(1)") mod = type(os)("remotetest") mod.__file__ = str(p) > channel = gw.remote_exec(mod) testing/test_gateway.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 189 data = 'M\x00\x00\x00\x10channel.send(1)\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError ___________ TestBasicGateway.test_correct_setup_no_py[gevent-socket] ___________ self = gw = def test_correct_setup_no_py(self, gw): channel = gw.remote_exec(""" import sys channel.send(list(sys.modules)) > """) testing/test_gateway.py:109: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 191 data = 'M\x00\x00\x00,\nimport sys\nchannel.send(list(sys.modules))\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError __________ TestBasicGateway.test_remote_exec_waitclose[gevent-socket] __________ self = gw = def test_remote_exec_waitclose(self, gw): > channel = gw.remote_exec('pass') testing/test_gateway.py:115: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 193, data = 'M\x00\x00\x00\x04passLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError _________ TestBasicGateway.test_remote_exec_waitclose_2[gevent-socket] _________ self = gw = def test_remote_exec_waitclose_2(self, gw): > channel = gw.remote_exec('def gccycle(): pass') testing/test_gateway.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 195 data = 'M\x00\x00\x00\x13def gccycle(): passLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError _______ TestBasicGateway.test_remote_exec_waitclose_noarg[gevent-socket] _______ self = gw = def test_remote_exec_waitclose_noarg(self, gw): > channel = gw.remote_exec('pass') testing/test_gateway.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 197, data = 'M\x00\x00\x00\x04passLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError ______ TestBasicGateway.test_remote_exec_error_after_close[gevent-socket] ______ self = gw = def test_remote_exec_error_after_close(self, gw): > channel = gw.remote_exec('pass') testing/test_gateway.py:127: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 199, data = 'M\x00\x00\x00\x04passLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError ______ TestBasicGateway.test_remote_exec_no_explicit_close[gevent-socket] ______ self = gw = def test_remote_exec_no_explicit_close(self, gw): > channel = gw.remote_exec('channel.close()') testing/test_gateway.py:132: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 201 data = 'M\x00\x00\x00\x0fchannel.close()LJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError ______ TestBasicGateway.test_remote_exec_channel_anonymous[gevent-socket] ______ self = gw = def test_remote_exec_channel_anonymous(self, gw): channel = gw.remote_exec(''' obj = channel.receive() channel.send(obj) > ''') testing/test_gateway.py:142: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 203 data = 'M\x00\x00\x00+\nobj = channel.receive()\nchannel.send(obj)\nLJ@\x00\x00\x00\x03Q' def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError _____ TestBasicGateway.test_confusion_from_os_write_stdout[gevent-socket] ______ self = gw = @needs_osdup def test_confusion_from_os_write_stdout(self, gw): channel = gw.remote_exec(""" import os os.write(1, 'confusion!'.encode('ascii')) channel.send(channel.receive() * 6) channel.send(channel.receive() * 6) > """) testing/test_gateway.py:154: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 205 data = "M\x00\x00\x00}\nimport os\nos.write(1, 'confusion!'.encode('ascii'))\nchannel.send(channel.receive() * 6)\nchannel.send(channel.receive() * 6)\nLJ@\x00\x00\x00\x03Q" def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError _____ TestBasicGateway.test_confusion_from_os_write_stderr[gevent-socket] ______ self = gw = @needs_osdup def test_confusion_from_os_write_stderr(self, gw): channel = gw.remote_exec(""" import os os.write(2, 'test'.encode('ascii')) channel.send(channel.receive() * 6) channel.send(channel.receive() * 6) > """) testing/test_gateway.py:169: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 207 data = "M\x00\x00\x00w\nimport os\nos.write(2, 'test'.encode('ascii'))\nchannel.send(channel.receive() * 6)\nchannel.send(channel.receive() * 6)\nLJ@\x00\x00\x00\x03Q" def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError _________________ TestBasicGateway.test__rinfo[gevent-socket] __________________ self = gw = def test__rinfo(self, gw): rinfo = gw._rinfo() assert rinfo.executable assert rinfo.cwd assert rinfo.version_info assert repr(rinfo) old = gw.remote_exec(""" import os.path cwd = os.getcwd() channel.send(os.path.basename(cwd)) os.chdir('..') > """).receive() testing/test_gateway.py:188: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../execnet-1.4.1-python2_7/lib/execnet/gateway.py:129: in remote_exec gateway_base.dumps_internal((source, call_name, kwargs))) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = msgcode = 3, channelid = 209 data = "M\x00\x00\x00U\nimport os.path\ncwd = os.getcwd()\nchannel.send(os.path.basename(cwd))\nos.chdir('..')\nLJ@\x00\x00\x00\x03Q" def _send(self, msgcode, channelid=0, data=bytes()): message = Message(msgcode, channelid, data) try: message.to_io(self._io) self._trace('sent', message) except (IOError, ValueError): e = sys.exc_info()[1] self._trace('failed to send', message, e) # ValueError might be because the IO is already closed > raise IOError("cannot send (already closed?)") E IOError: cannot send (already closed?) ../execnet-1.4.1-python2_7/lib/execnet/gateway_base.py:990: IOError ============================ pytest-warning summary ============================ WI1 /var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1/testing/conftest.py:21 'pytest_runtest_setup' hook uses deprecated __multicall__ argument WC1 None pytest_funcarg__specsocket: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0. Please remove the prefix and use the @pytest.fixture decorator instead. WC1 None pytest_funcarg__specssh: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0. Please remove the prefix and use the @pytest.fixture decorator instead. 43 failed, 452 passed, 435 skipped, 14 xfailed, 3 pytest-warnings in 27.60 seconds * ERROR: dev-python/execnet-1.4.1::gentoo failed (test phase): * Tests fail with python2.7 * * Call stack: * ebuild.sh, line 115: Called src_test * environment, line 3653: Called distutils-r1_src_test * environment, line 964: Called _distutils-r1_run_foreach_impl 'python_test' * environment, line 301: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' * environment, line 3161: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2266: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2264: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' * environment, line 572: Called distutils-r1_run_phase 'python_test' * environment, line 896: Called python_test * environment, line 3532: Called die * The specific snippet of code: * py.test testing || die "Tests fail with ${EPYTHON}" * * If you need support, post the output of `emerge --info '=dev-python/execnet-1.4.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-python/execnet-1.4.1::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-python/execnet-1.4.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/execnet-1.4.1/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1' * S: '/var/tmp/portage/dev-python/execnet-1.4.1/work/execnet-1.4.1'