On Sat, 19 Feb 2022, Lucas Nussbaum wrote:

=================================== FAILURES ===================================
_________________ test_internal_errors_propagate_to_controller _________________

pytester = <Pytester 
PosixPath('/tmp/pytest-of-user42/pytest-0/test_internal_errors_propagate_to_controller0')>

    def test_internal_errors_propagate_to_controller(pytester: pytest.Pytester) 
-> None:
        pytester.makeconftest(
            """
            def pytest_collection_modifyitems():
                raise RuntimeError("Some runtime error")
            """
        )
        pytester.makepyfile("def test(): pass")
        result = pytester.runpytest("-n1")
      result.stdout.fnmatch_lines(["*RuntimeError: Some runtime error*"])
E       Failed: nomatch: '*RuntimeError: Some runtime error*'
E           and: '============================= test session starts 
=============================='
E           and: 'platform linux -- Python 3.10.2, pytest-6.2.5, py-1.10.0, 
pluggy-0.13.0'
E           and: 'rootdir: 
/tmp/pytest-of-user42/pytest-0/test_internal_errors_propagate_to_controller0'
E           and: 'plugins: xdist-2.5.0, forked-1.4.0'
E           and: 'gw0 I'
E           and: 'gw0 [1]'
E           and: ''
E           and: 'INTERNALERROR> Traceback (most recent call last):'
E           and: 'INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/_pytest/main.py", line 269, in wrap_session'
E           and: 'INTERNALERROR>     session.exitstatus = doit(config, session) 
or 0'
E           and: 'INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/_pytest/main.py", line 323, in _main'
E           and: 'INTERNALERROR>     
config.hook.pytest_runtestloop(session=session)'
E           and: 'INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/hooks.py", line 286, in __call__'
E           and: 'INTERNALERROR>     return self._hookexec(self, 
self.get_hookimpls(), kwargs)'
E           and: 'INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/manager.py", line 92, in _hookexec'
E           and: 'INTERNALERROR>     return self._inner_hookexec(hook, methods, 
kwargs)'
E           and: 'INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/manager.py", line 335, in traced_hookexec'
E           and: 'INTERNALERROR>     return outcome.get_result()'
E           and: 'INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/callers.py", line 80, in get_result'
E           and: 'INTERNALERROR>     raise ex[1].with_traceback(ex[2])'
E           and: 'INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/callers.py", line 52, in from_call'
E           and: 'INTERNALERROR>     result = func()'
E           and: 'INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/manager.py", line 333, in <lambda>'
E           and: 'INTERNALERROR>     outcome = _Result.from_call(lambda: 
oldcall(hook, hook_impls, kwargs))'
E           and: 'INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/manager.py", line 83, in <lambda>'
E           and: 'INTERNALERROR>     self._inner_hookexec = lambda hook, 
methods, kwargs: hook.multicall('
E           and: 'INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/callers.py", line 208, in _multicall'
E           and: 'INTERNALERROR>     return outcome.get_result()'
E           and: 'INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/callers.py", line 80, in get_result'
E           and: 'INTERNALERROR>     raise ex[1].with_traceback(ex[2])'
E           and: 'INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/callers.py", line 187, in _multicall'
E           and: 'INTERNALERROR>     res = hook_impl.function(*args)'
E           and: 'INTERNALERROR>   File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/dsession.py", 
line 117, in pytest_runtestloop'
E           and: 'INTERNALERROR>     self.loop_once()'
E           and: 'INTERNALERROR>   File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/dsession.py", 
line 140, in loop_once'
E           and: 'INTERNALERROR>     call(**kwargs)'
E           and: 'INTERNALERROR>   File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/dsession.py", 
line 262, in worker_collectionfinish'
E           and: 'INTERNALERROR>     self.sched.schedule()'
E           and: 'INTERNALERROR>   File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/scheduler/load.py",
 line 257, in schedule'
E           and: 'INTERNALERROR>     self._send_tests(next(nodes), 1)'
E           and: 'INTERNALERROR>   File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/scheduler/load.py",
 line 269, in _send_tests'
E           and: 'INTERNALERROR>     node.send_runtest_some(tests_per_node)'
E           and: 'INTERNALERROR>   File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/workermanage.py",
 line 284, in send_runtest_some'
E           and: 'INTERNALERROR>     self.sendcommand("runtests", 
indices=indices)'
E           and: 'INTERNALERROR>   File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/workermanage.py",
 line 300, in sendcommand'
E           and: 'INTERNALERROR>     self.channel.send((name, kwargs))'
E           and: 'INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/execnet/gateway_base.py", line 728, in send'
E           and: 'INTERNALERROR>     raise IOError("cannot send to 
{!r}".format(self))'
E           and: 'INTERNALERROR> OSError: cannot send to <Channel id=1 closed>'
E           and: ''
E           and: '============================ no tests ran in 0.25s 
============================='
E       remains unmatched: '*RuntimeError: Some runtime error*'

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/testing/acceptance_test.py:1156:
 Failed
----------------------------- Captured stdout call -----------------------------

I'm not able to reproduce this, at least locally in sbuild. Possibly some transient error in unstable? Can you re-try?

Thanks,
Scott

Reply via email to