From issues-reply at bitbucket.org Mon Mar 10 19:41:55 2014 From: issues-reply at bitbucket.org (Arfrever Frehtes Taifersar Arahesis) Date: Mon, 10 Mar 2014 18:41:55 -0000 Subject: [execnet-dev] Issue #31: Test failure with enabled warnings (hpk42/execnet) Message-ID: <20140310184155.14193.64708@app11.ash-private.bitbucket.org> New issue 31: Test failure with enabled warnings https://bitbucket.org/hpk42/execnet/issue/31/test-failure-with-enabled-warnings Arfrever Frehtes Taifersar Arahesis: Execnet has 1 additional test failure with Python >=3.2 and enabled warnings (using e.g. `PYTHONWARNINGS="d,i::ImportWarning"` environmental variable) due to unexpected ResourceWarning in stderr. ``` $ PYTHONPATH="$(pwd)" PYTHONWARNINGS="d,i::ImportWarning" py.test-3.3 testing ==================================================================== test session starts ==================================================================== platform linux -- Python 3.3.5 -- py-1.4.20 -- pytest-2.5.2 gateway test setup scope: session execnet: /tmp/execnet/execnet/__init__.py -- 1.2.0 collected 916 items testing/test_basics.py ...................ss.....ss.....ss.F..... 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 .....ss.xxxxxss 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 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 .....ss.....ss................ss.. testing/test_channel.py s. 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 ......ss testing/test_xspec.py .....................ss. ========================================================================= FAILURES ========================================================================== _____________________________________________________________ test_stdouterrin_setnull[thread] ______________________________________________________________ execmodel = @pytest.mark.skipif("not hasattr(os, 'dup')") def test_stdouterrin_setnull(execmodel): cap = py.io.StdCaptureFD() gateway_base.init_popen_io(execmodel) os.write(1, "hello".encode('ascii')) if os.name == "nt": os.write(2, "world") os.read(0, 1) out, err = cap.reset() assert not out > assert not err E assert not "/tmp/execnet/testing/test_basics.py:196: ResourceWarning: unclosed file <_io.TextIOWrapper name=13 mode='r' encoding=...file <_io.TextIOWrapper name=1 mode='w' encoding='UTF-8'>\n setattr(sys, patchsysdict[self.targetfd], self._oldsys)\n" testing/test_basics.py:203: AssertionError ---------------------------------------------------------------------- Captured stderr ---------------------------------------------------------------------- /usr/lib64/python3.3/site-packages/py/_io/capture.py:77: ResourceWarning: unclosed file <_io.TextIOWrapper name=0 mode='r' encoding='UTF-8'> setattr(sys, patchsysdict[self.targetfd], self._oldsys) ================================================================== 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[sys.executable-thread] reason: only os threading model supported XFAIL testing/test_termination.py::test_terminate_implicit_does_trykill[python3.3-thread] reason: only os threading model supported XFAIL testing/test_termination.py::test_terminate_implicit_does_trykill[python3.2-thread] reason: only os threading model supported XFAIL testing/test_termination.py::test_terminate_implicit_does_trykill[python2.6-thread] reason: only os threading model supported XFAIL testing/test_termination.py::test_terminate_implicit_does_trykill[python2.7-thread] reason: only os threading model supported XFAIL testing/test_threadpool.py::test_limited_size[thread] WorkerPool does not implement limited size SKIP [54] /tmp/execnet/testing/conftest.py:66: no 'gspecs' value found SKIP [2] /usr/lib64/python3.3/site-packages/_pytest/skipping.py:132: condition: sys.version>="3.0" SKIP [249] /tmp/execnet/testing/conftest.py:177: could not import 'eventlet' SKIP [17] /tmp/execnet/testing/conftest.py:129: no pypy found SKIP [17] /tmp/execnet/testing/conftest.py:129: no jython found SKIP [249] /tmp/execnet/testing/conftest.py:177: could not import 'gevent' =============================================== 1 failed, 319 passed, 588 skipped, 8 xfailed in 48.32 seconds =============================================== sys:1: ResourceWarning: unclosed sys:1: ResourceWarning: gc: 4 uncollectable objects at shutdown; use gc.set_debug(gc.DEBUG_UNCOLLECTABLE) to list them ``` From issues-reply at bitbucket.org Mon Mar 10 19:42:31 2014 From: issues-reply at bitbucket.org (Arfrever Frehtes Taifersar Arahesis) Date: Mon, 10 Mar 2014 18:42:31 -0000 Subject: [execnet-dev] Issue #32: Test failures with Python >=3.4 (hpk42/execnet) Message-ID: <20140310184231.1886.6819@app06.ash-private.bitbucket.org> New issue 32: Test failures with Python >=3.4 https://bitbucket.org/hpk42/execnet/issue/32/test-failures-with-python-34 Arfrever Frehtes Taifersar Arahesis: Execnet has 3 additional test failures with Python >=3.4. ``` $ PYTHONPATH="$(pwd)" py.test-3.4 testing ==================================================================== test session starts ==================================================================== platform linux -- Python 3.4.0 -- py-1.4.20 -- pytest-2.5.2 gateway test setup scope: session execnet: /tmp/execnet/execnet/__init__.py -- 1.2.0 collected 916 items testing/test_basics.py ...................ss.....ss.....ss....... testing/test_channel.py ..s...s...s...s...s...s...s...s...s.FFsF..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 .....ss.xxxxxss 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 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 .....ss.....ss................ss.. testing/test_channel.py s. 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 ......ss testing/test_xspec.py .....................ss. ========================================================================= FAILURES ========================================================================== ___________________________________________ TestChannelBasicBehaviour.test_channel_error_reporting[popen-thread] ____________________________________________ self = , gw = def test_channel_error_reporting(self, gw): channel = gw.remote_exec('def foo():\n return foobar()\nfoo()\n') try: channel.receive() except channel.RemoteError: e = sys.exc_info()[1] assert str(e).startswith('Traceback (most recent call last):') > assert str(e).find('NameError: global name \'foobar\' ' 'is not defined') > -1 E assert -1 > -1 E + where -1 = ("NameError: global name 'foobar' is not defined") E + where = 'Traceback (most recent call last):\n File "/tmp/execnet/execnet/gateway_base.py", line 1029, in executetask\n do_...emote exec>", line 3, in \n File "", line 2, in foo\nNameError: name \'foobar\' is not defined\n'.find E + where 'Traceback (most recent call last):\n File "/tmp/execnet/execnet/gateway_base.py", line 1029, in executetask\n do_...emote exec>", line 3, in \n File "", line 2, in foo\nNameError: name \'foobar\' is not defined\n' = str(RemoteError: Traceback (most recent call last):\n File "/tmp/execnet/execnet/gateway_base.py", line 1029, in executeta...le "", line 3, in \n File "", line 2, in foo\nNameError: name 'foobar' is not defined\n) testing/test_channel.py:76: AssertionError ___________________________________________ TestChannelBasicBehaviour.test_channel_error_reporting[socket-thread] ___________________________________________ self = , gw = def test_channel_error_reporting(self, gw): channel = gw.remote_exec('def foo():\n return foobar()\nfoo()\n') try: channel.receive() except channel.RemoteError: e = sys.exc_info()[1] assert str(e).startswith('Traceback (most recent call last):') > assert str(e).find('NameError: global name \'foobar\' ' 'is not defined') > -1 E assert -1 > -1 E + where -1 = ("NameError: global name 'foobar' is not defined") E + where = 'Traceback (most recent call last):\n File """"\nbase execnet gateway code send to the other side for bootstrapping.\...emote exec>", line 3, in \n File "", line 2, in foo\nNameError: name \'foobar\' is not defined\n'.find E + where 'Traceback (most recent call last):\n File """"\nbase execnet gateway code send to the other side for bootstrapping.\...emote exec>", line 3, in \n File "", line 2, in foo\nNameError: name \'foobar\' is not defined\n' = str(RemoteError: Traceback (most recent call last):\n File """"\nbase execnet gateway code send to the other side for boots...le "", line 3, in \n File "", line 2, in foo\nNameError: name 'foobar' is not defined\n) testing/test_channel.py:76: AssertionError self = , gw = def test_channel_error_reporting(self, gw): channel = gw.remote_exec('def foo():\n return foobar()\nfoo()\n') try: channel.receive() except channel.RemoteError: e = sys.exc_info()[1] assert str(e).startswith('Traceback (most recent call last):') > assert str(e).find('NameError: global name \'foobar\' ' 'is not defined') > -1 E assert -1 > -1 E + where -1 = ("NameError: global name 'foobar' is not defined") E + where = 'Traceback (most recent call last):\n File "/tmp/execnet/execnet/gateway_base.py", line 1029, in executetask\n do_...emote exec>", line 3, in \n File "", line 2, in foo\nNameError: name \'foobar\' is not defined\n'.find E + where 'Traceback (most recent call last):\n File "/tmp/execnet/execnet/gateway_base.py", line 1029, in executetask\n do_...emote exec>", line 3, in \n File "", line 2, in foo\nNameError: name \'foobar\' is not defined\n' = str(RemoteError: Traceback (most recent call last):\n File "/tmp/execnet/execnet/gateway_base.py", line 1029, in executeta...le "", line 3, in \n File "", line 2, in foo\nNameError: name 'foobar' is not defined\n) testing/test_channel.py:76: AssertionError ================================================================== 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[sys.executable-thread] reason: only os threading model supported XFAIL testing/test_termination.py::test_terminate_implicit_does_trykill[python3.3-thread] reason: only os threading model supported XFAIL testing/test_termination.py::test_terminate_implicit_does_trykill[python3.2-thread] reason: only os threading model supported XFAIL testing/test_termination.py::test_terminate_implicit_does_trykill[python2.6-thread] reason: only os threading model supported XFAIL testing/test_termination.py::test_terminate_implicit_does_trykill[python2.7-thread] reason: only os threading model supported XFAIL testing/test_threadpool.py::test_limited_size[thread] WorkerPool does not implement limited size SKIP [249] /tmp/execnet/testing/conftest.py:177: could not import 'gevent' SKIP [249] /tmp/execnet/testing/conftest.py:177: could not import 'eventlet' SKIP [54] /tmp/execnet/testing/conftest.py:66: no 'gspecs' value found SKIP [17] /tmp/execnet/testing/conftest.py:129: no jython found SKIP [2] /usr/lib64/python3.4/site-packages/_pytest/skipping.py:132: condition: sys.version>="3.0" SKIP [17] /tmp/execnet/testing/conftest.py:129: no pypy found =============================================== 3 failed, 317 passed, 588 skipped, 8 xfailed in 47.23 seconds =============================================== ```