Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internalerror KeyError: <class '_io.BufferedReader'> #349

Closed
pv opened this issue Sep 29, 2018 · 4 comments
Closed

Internalerror KeyError: <class '_io.BufferedReader'> #349

pv opened this issue Sep 29, 2018 · 4 comments

Comments

@pv
Copy link

pv commented Sep 29, 2018

Not sure what's exactly going on but pytest-xdist started emitting INTERNALERRORs and failing in version 1.23.1 (and 1.23.2). pytest-xdist-1.23.0 does not emit these.

EDIT: minimal repro:

$ cat test_foo.py
def test_foo():
    open('/dev/null', 'rb')
$ python3.6 -mpytest test_foo.py -W once -n2

To reproduce:

$ python3.6 -mvenv tmp
$ ./tmp/bin/python3.6 -mpip install pytest pytest-xdist six
$ git clone https://github.com/airspeed-velocity/asv.git
$ cd asv
$ git checkout 6f729bb9808116c1ebaa77c6684a4c8120926051
$ ../tmp/bin/python3.6 -mpytest test/test_dev.py -n2
===================================== test session starts =====================================
platform linux -- Python 3.6.6, pytest-3.8.1, py-1.6.0, pluggy-0.7.1
rootdir: /home/pauli/tmp/asv, inifile: setup.cfg
plugins: xdist-1.23.2, forked-0.2
gw0 [6] / gw1 [6]
scheduling tests via LoadScheduling
.INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/execnet/gateway_base.py", line 1383, in _save
INTERNALERROR>     dispatch = self._dispatch[tp]
INTERNALERROR> KeyError: <class '_io.BufferedReader'>
INTERNALERROR> 
INTERNALERROR> During handling of the above exception, another exception occurred:
INTERNALERROR> 
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/_pytest/main.py", line 178, in wrap_session
INTERNALERROR>     session.exitstatus = doit(config, session) or 0
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/_pytest/main.py", line 215, in _main
INTERNALERROR>     config.hook.pytest_runtestloop(session=session)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/hooks.py", line 258, in __call__
INTERNALERROR>     return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/manager.py", line 67, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/manager.py", line 61, in <lambda>
INTERNALERROR>     firstresult=hook.spec_opts.get('firstresult'),
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/callers.py", line 201, in _multicall
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/callers.py", line 76, in get_result
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/callers.py", line 180, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "<remote exec>", line 65, in pytest_runtestloop
INTERNALERROR>   File "<remote exec>", line 82, in run_one_test
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/hooks.py", line 258, in __call__
INTERNALERROR>     return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/manager.py", line 67, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/manager.py", line 61, in <lambda>
INTERNALERROR>     firstresult=hook.spec_opts.get('firstresult'),
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/callers.py", line 196, in _multicall
INTERNALERROR>     gen.send(outcome)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/_pytest/warnings.py", line 137, in pytest_runtest_protocol
INTERNALERROR>     yield
INTERNALERROR>   File "/usr/lib64/python3.6/contextlib.py", line 88, in __exit__
INTERNALERROR>     next(self.gen)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/_pytest/warnings.py", line 96, in catch_warnings_for_item
INTERNALERROR>     kwargs=dict(warning_message=warning_message, when=when, item=item)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/hooks.py", line 280, in call_historic
INTERNALERROR>     res = self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/manager.py", line 67, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/manager.py", line 61, in <lambda>
INTERNALERROR>     firstresult=hook.spec_opts.get('firstresult'),
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/callers.py", line 201, in _multicall
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/callers.py", line 76, in get_result
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/callers.py", line 180, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "<remote exec>", line 135, in pytest_warning_captured
INTERNALERROR>   File "<remote exec>", line 29, in sendevent
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/execnet/gateway_base.py", line 717, in send
INTERNALERROR>     self.gateway._send(Message.CHANNEL_DATA, self.id, dumps_internal(item))
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/execnet/gateway_base.py", line 1354, in dumps_internal
INTERNALERROR>     return _Serializer().save(obj)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/execnet/gateway_base.py", line 1372, in save
INTERNALERROR>     self._save(obj)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/execnet/gateway_base.py", line 1390, in _save
INTERNALERROR>     dispatch(self, obj)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/execnet/gateway_base.py", line 1475, in save_tuple
INTERNALERROR>     self._save(item)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/execnet/gateway_base.py", line 1390, in _save
INTERNALERROR>     dispatch(self, obj)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/execnet/gateway_base.py", line 1471, in save_dict
INTERNALERROR>     self._write_setitem(key, value)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/execnet/gateway_base.py", line 1465, in _write_setitem
INTERNALERROR>     self._save(value)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/execnet/gateway_base.py", line 1390, in _save
INTERNALERROR>     dispatch(self, obj)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/execnet/gateway_base.py", line 1471, in save_dict
INTERNALERROR>     self._write_setitem(key, value)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/execnet/gateway_base.py", line 1465, in _write_setitem
INTERNALERROR>     self._save(value)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/execnet/gateway_base.py", line 1388, in _save
INTERNALERROR>     raise DumpError("can't serialize %s" % (tp,))
INTERNALERROR> execnet.gateway_base.DumpError: can't serialize <class '_io.BufferedReader'>
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/_pytest/main.py", line 178, in wrap_session
INTERNALERROR>     session.exitstatus = doit(config, session) or 0
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/_pytest/main.py", line 215, in _main
INTERNALERROR>     config.hook.pytest_runtestloop(session=session)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/hooks.py", line 258, in __call__
INTERNALERROR>     return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/manager.py", line 67, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/manager.py", line 61, in <lambda>
INTERNALERROR>     firstresult=hook.spec_opts.get('firstresult'),
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/callers.py", line 201, in _multicall
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/callers.py", line 76, in get_result
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/pluggy/callers.py", line 180, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/xdist/dsession.py", line 115, in pytest_runtestloop
INTERNALERROR>     self.loop_once()
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/xdist/dsession.py", line 138, in loop_once
INTERNALERROR>     call(**kwargs)
INTERNALERROR>   File "/home/pauli/tmp/tmp/lib64/python3.6/site-packages/xdist/dsession.py", line 180, in worker_workerfinished
INTERNALERROR>     assert not crashitem, (crashitem, node)
INTERNALERROR> AssertionError: ('test/test_dev.py::test_dev_with_repo_subdir', <WorkerController gw1>)
INTERNALERROR> assert not 'test/test_dev.py::test_dev_with_repo_subdir'

================================== 1 passed in 6.23 seconds ===================================
@nicoddemus
Copy link
Member

Hi @pv,

I suspect your code emitting a warning which contains a BufferedReader in one of its arguments...

When you run without xdist, do you see any warnings which might fit the bill?

@pv
Copy link
Author

pv commented Sep 29, 2018

Yes, there are ResourceWarning: unclosed file <_io.BufferedReader name=8> emitted.
But I guess ideally pytest-xdist shouldn't choke on those?

@nicoddemus
Copy link
Member

Hi @pv,

But I guess ideally pytest-xdist shouldn't choke on those?

Yes, you are absolutely right.

@vlovygin
Copy link

vlovygin commented Oct 29, 2018

Hi!

I have the similar problem at 1.23.0+ version. At 1.23.0 work correcly.

platform win32 -- Python 3.6.6, pytest-3.9.3, py-1.7.0, pluggy-0.8.0 -- c:\service_test\.venv\scripts\python.exe
cachedir: .pytest_cache
rootdir: c:\service_test, inifile: pytest.ini
plugins: xdist-1.23.2, timeout-1.3.2, repeat-0.7.0, forked-0.2, allure-adaptor-1.7.10
timeout: 60.0s
timeout method: thread
timeout func_only: False
[gw0] win32 Python 3.6.6 cwd: c:\service_test
[gw1] win32 Python 3.6.6 cwd: c:\service_test
[gw0] Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)]
[gw1] Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)]
gw0 [27] / gw1 [27]
scheduling tests via LoadScheduling

tests/test_.py::TestArbitrmanagers::test__
tests/test_arbitrmanagers/test_arbitrmanagers.py::TestArbitrmanagers::test_am_with_valid_sro
[gw0] [  3%] PASSED tests/test_.py::TestArbitrmanagers::test__
tests/test_arbitrmanagers/test_arbitrmanagers.py::TestArbitrmanagers::test_am_inn
[gw1] [  7%] PASSED tests/test_arbitrmanagers/test_arbitrmanagers.py::TestArbitrmanagers::test_am_with_valid_sro
[gw0] [ 11%] PASSED tests/test_arbitrmanagers/test_arbitrmanagers.py::TestArbitrmanagers::test_am_inn INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1383, in _save
INTERNALERROR>     dispatch = self._dispatch[tp]
INTERNALERROR> KeyError: <class 'sqlalchemy.util.langhelpers._hash_limit_string'>
INTERNALERROR>
INTERNALERROR> During handling of the above exception, another exception occurred:
INTERNALERROR>
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\_pytest\main.py", line 184, in wrap_session
INTERNALERROR>     session.exitstatus = doit(config, session) or 0
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\_pytest\main.py", line 224, in _main
INTERNALERROR>     config.hook.pytest_runtestloop(session=session)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\hooks.py", line 284, in __call__
INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\manager.py", line 67, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\manager.py", line 61, in <lambda>
INTERNALERROR>     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\callers.py", line 208, in _multicall
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1383, in _save
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\callers.py", line 80, in get_result
INTERNALERROR>     dispatch = self._dispatch[tp]
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR> KeyError: <class 'sqlalchemy.util.langhelpers._hash_limit_string'>
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\callers.py", line 187, in _multicall
INTERNALERROR>
INTERNALERROR> During handling of the above exception, another exception occurred:
INTERNALERROR>
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\_pytest\main.py", line 184, in wrap_session
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>     session.exitstatus = doit(config, session) or 0
INTERNALERROR>   File "<remote exec>", line 65, in pytest_runtestloop
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\_pytest\main.py", line 224, in _main
INTERNALERROR>   File "<remote exec>", line 82, in run_one_test
INTERNALERROR>     config.hook.pytest_runtestloop(session=session)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\hooks.py", line 284, in __call__
INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\hooks.py", line 284, in __call__
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\manager.py", line 67, in _hookexec
INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\manager.py", line 67, in _hookexec
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\manager.py", line 61, in <lambda>
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\manager.py", line 61, in <lambda>
INTERNALERROR>     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\callers.py", line 203, in _multicall
INTERNALERROR>     gen.send(outcome)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\_pytest\warnings.py", line 138, in pytest_runtest_protocol
INTERNALERROR>     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR>     yield
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\callers.py", line 208, in _multicall
INTERNALERROR>   File "c:\python36\Lib\contextlib.py", line 88, in __exit__
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>     next(self.gen)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\callers.py", line 80, in get_result
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\_pytest\warnings.py", line 97, in catch_warnings_for_item
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>     kwargs=dict(warning_message=warning_message, when=when, item=item)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\callers.py", line 187, in _multicall
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\hooks.py", line 306, in call_historic
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>     res = self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR>   File "<remote exec>", line 65, in pytest_runtestloop
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\manager.py", line 67, in _hookexec
INTERNALERROR>   File "<remote exec>", line 82, in run_one_test
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\hooks.py", line 284, in __call__
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\manager.py", line 61, in <lambda>
INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR>     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\manager.py", line 67, in _hookexec
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\callers.py", line 208, in _multicall
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\manager.py", line 61, in <lambda>
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\callers.py", line 80, in get_result
INTERNALERROR>     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\callers.py", line 203, in _multicall
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\callers.py", line 187, in _multicall
INTERNALERROR>     gen.send(outcome)
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\_pytest\warnings.py", line 138, in pytest_runtest_protocol
INTERNALERROR>   File "<remote exec>", line 135, in pytest_warning_captured
INTERNALERROR>     yield
INTERNALERROR>   File "<remote exec>", line 29, in sendevent
INTERNALERROR>   File "c:\python36\Lib\contextlib.py", line 88, in __exit__
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 717, in send
INTERNALERROR>     next(self.gen)
INTERNALERROR>     self.gateway._send(Message.CHANNEL_DATA, self.id, dumps_internal(item))
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\_pytest\warnings.py", line 97, in catch_warnings_for_item
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1354, in dumps_internal
INTERNALERROR>     kwargs=dict(warning_message=warning_message, when=when, item=item)
INTERNALERROR>     return _Serializer().save(obj)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\hooks.py", line 306, in call_historic
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1372, in save
INTERNALERROR>     res = self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR>     self._save(obj)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\manager.py", line 67, in _hookexec
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1390, in _save
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>     dispatch(self, obj)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\manager.py", line 61, in <lambda>
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1475, in save_tuple
INTERNALERROR>     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR>     self._save(item)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\callers.py", line 208, in _multicall
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1390, in _save
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>     dispatch(self, obj)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\callers.py", line 80, in get_result
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1471, in save_dict
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>     self._write_setitem(key, value)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1465, in _write_setitem
INTERNALERROR>     self._save(value)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1390, in _save
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\callers.py", line 187, in _multicall
INTERNALERROR>     dispatch(self, obj)
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "<remote exec>", line 135, in pytest_warning_captured
INTERNALERROR>   File "<remote exec>", line 29, in sendevent
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 717, in send
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1471, in save_dict
INTERNALERROR>     self.gateway._send(Message.CHANNEL_DATA, self.id, dumps_internal(item))
INTERNALERROR>     self._write_setitem(key, value)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1354, in dumps_internal
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1465, in _write_setitem
INTERNALERROR>     return _Serializer().save(obj)
INTERNALERROR>     self._save(value)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1372, in save
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1390, in _save
INTERNALERROR>     self._save(obj)
INTERNALERROR>     dispatch(self, obj)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1390, in _save
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1475, in save_tuple
INTERNALERROR>     dispatch(self, obj)
INTERNALERROR>     self._save(item)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1475, in save_tuple
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1388, in _save
INTERNALERROR>     self._save(item)
INTERNALERROR>     raise DumpError("can't serialize %s" % (tp,))
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1390, in _save
INTERNALERROR>     dispatch(self, obj)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1471, in save_dict
INTERNALERROR> execnet.gateway_base.DumpError: can't serialize <class 'sqlalchemy.util.langhelpers._hash_limit_string'>
INTERNALERROR>     self._write_setitem(key, value)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1465, in _write_setitem
INTERNALERROR>     self._save(value)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1390, in _save
INTERNALERROR>     dispatch(self, obj)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1471, in save_dict
INTERNALERROR>     self._write_setitem(key, value)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1465, in _write_setitem
INTERNALERROR>     self._save(value)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1390, in _save
INTERNALERROR>     dispatch(self, obj)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1475, in save_tuple
INTERNALERROR>     self._save(item)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\execnet\gateway_base.py", line 1388, in _save
INTERNALERROR>     raise DumpError("can't serialize %s" % (tp,))
INTERNALERROR> execnet.gateway_base.DumpError: can't serialize <class 'sqlalchemy.util.langhelpers._hash_limit_string'>

INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\_pytest\main.py", line 184, in wrap_session
INTERNALERROR>     session.exitstatus = doit(config, session) or 0
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\_pytest\main.py", line 224, in _main
INTERNALERROR>     config.hook.pytest_runtestloop(session=session)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\hooks.py", line 284, in __call__
INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\manager.py", line 67, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\manager.py", line 61, in <lambda>
INTERNALERROR>     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\callers.py", line 208, in _multicall
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\callers.py", line 80, in get_result
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\pluggy\callers.py", line 187, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\xdist\dsession.py", line 115, in pytest_runtestloop
INTERNALERROR>     self.loop_once()
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\xdist\dsession.py", line 138, in loop_once
INTERNALERROR>     call(**kwargs)
INTERNALERROR>   File "c:\service_test\.venv\lib\site-packages\xdist\dsession.py", line 180, in worker_workerfinished
INTERNALERROR>     assert not crashitem, (crashitem, node)
INTERNALERROR> AssertionError: ('tests/test_arbitrmanagers/test_arbitrmanagers.py::TestArbitrmanagers::()::test_am_inn', <WorkerController gw0>)
INTERNALERROR> assert not 'tests/test_arbitrmanagers/test_arbitrmanagers.py::TestArbitrmanagers::()::test_am_inn'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants