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

Test failures with trio 0.27.0 #154

Open
mweinelt opened this issue Dec 9, 2024 · 0 comments
Open

Test failures with trio 0.27.0 #154

mweinelt opened this issue Dec 9, 2024 · 0 comments

Comments

@mweinelt
Copy link

mweinelt commented Dec 9, 2024

Hi!

After updating trio to 0.27.0 we are seeing the following test failure on trio-asyncio.

trio-asyncio> ============================= test session starts ==============================
trio-asyncio> platform linux -- Python 3.12.8, pytest-8.3.3, pluggy-1.5.0
trio-asyncio> rootdir: /build/source
trio-asyncio> configfile: pyproject.toml
trio-asyncio> plugins: trio-0.8.0
trio-asyncio> collected 123 items                                                            
trio-asyncio> 
trio-asyncio> tests/aiotest/test_add_reader.py ...                                     [  2%]
trio-asyncio> tests/aiotest/test_callback.py ...                                       [  4%]
trio-asyncio> tests/aiotest/test_coroutine.py ..                                       [  6%]
trio-asyncio> tests/aiotest/test_network.py .                                          [  7%]
trio-asyncio> tests/aiotest/test_thread.py ....                                        [ 10%]
trio-asyncio> tests/aiotest/test_timer.py ..                                           [ 12%]
trio-asyncio> tests/interop/test_adapter.py .................                          [ 26%]
trio-asyncio> tests/interop/test_calls.py ....................                         [ 42%]
trio-asyncio> tests/test_aio_subprocess.py ..............                              [ 53%]
trio-asyncio> tests/test_concurrent.py ...                                             [ 56%]
trio-asyncio> tests/test_deprecate.py ...........                                      [ 65%]
trio-asyncio> tests/test_misc.py ...............F.                                     [ 78%]
trio-asyncio> tests/test_sync.py .                                                     [ 79%]
trio-asyncio> tests/test_trio_asyncio.py .........FF..............                     [100%]
trio-asyncio> 
trio-asyncio> =================================== FAILURES ===================================
trio-asyncio> __________________________ test_run_trio_task_errors ___________________________
trio-asyncio>   + Exception Group Traceback (most recent call last):
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/runner.py", line 341, in from_call
trio-asyncio>   |     result: TResult | None = func()
trio-asyncio>   |                              ^^^^^^
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/runner.py", line 242, in <lambda>
trio-asyncio>   |     lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
trio-asyncio>   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
trio-asyncio>   |     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
trio-asyncio>   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
trio-asyncio>   |     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
trio-asyncio>   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 182, in _multicall
trio-asyncio>   |     return outcome.get_result()
trio-asyncio>   |            ^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
trio-asyncio>   |     raise exc.with_traceback(exc.__traceback__)
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
trio-asyncio>   |     teardown.throw(outcome._exception)
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/threadexception.py", line 92, in pytest_runtest_call
trio-asyncio>   |     yield from thread_exception_runtest_hook()
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/threadexception.py", line 68, in thread_exception_runtest_hook
trio-asyncio>   |     yield
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
trio-asyncio>   |     teardown.throw(outcome._exception)
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 95, in pytest_runtest_call
trio-asyncio>   |     yield from unraisable_exception_runtest_hook()
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 70, in unraisable_exception_runtest_hook
trio-asyncio>   |     yield
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
trio-asyncio>   |     teardown.throw(outcome._exception)
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/logging.py", line 846, in pytest_runtest_call
trio-asyncio>   |     yield from self._runtest_for(item, "call")
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/logging.py", line 829, in _runtest_for
trio-asyncio>   |     yield
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
trio-asyncio>   |     teardown.throw(outcome._exception)
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/capture.py", line 880, in pytest_runtest_call
trio-asyncio>   |     return (yield)
trio-asyncio>   |             ^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
trio-asyncio>   |     teardown.throw(outcome._exception)
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/skipping.py", line 257, in pytest_runtest_call
trio-asyncio>   |     return (yield)
trio-asyncio>   |             ^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
trio-asyncio>   |     res = hook_impl.function(*args)
trio-asyncio>   |           ^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call
trio-asyncio>   |     item.runtest()
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/python.py", line 1627, in runtest
trio-asyncio>   |     self.ihook.pytest_pyfunc_call(pyfuncitem=self)
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
trio-asyncio>   |     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
trio-asyncio>   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
trio-asyncio>   |     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
trio-asyncio>   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
trio-asyncio>   |     raise exception.with_traceback(exception.__traceback__)
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
trio-asyncio>   |     res = hook_impl.function(*args)
trio-asyncio>   |           ^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call
trio-asyncio>   |     result = testfunction(**testargs)
trio-asyncio>   |              ^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/d33kgdzsi31gqwv85g3xilk4b4vliafm-python3.12-pytest-trio-0.8.0/lib/python3.12/site-packages/pytest_trio/plugin.py", line 348, in wrapper
trio-asyncio>   |     return run(partial(fn, **kwargs), clock=clock, instruments=instruments)
trio-asyncio>   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/vyq13wihh1spxzk8yhd7y5rhqv4ybfbp-python3.12-trio-0.27.0/lib/python3.12/site-packages/trio/_core/_run.py", line 2407, in run
trio-asyncio>   |     raise runner.main_task_outcome.error
trio-asyncio>   |   File "/nix/store/d33kgdzsi31gqwv85g3xilk4b4vliafm-python3.12-pytest-trio-0.8.0/lib/python3.12/site-packages/pytest_trio/plugin.py", line 426, in _bootstrap_fixtures_and_run_test
trio-asyncio>   |     raise test_ctx.error_list[0]
trio-asyncio>   |   File "/nix/store/d33kgdzsi31gqwv85g3xilk4b4vliafm-python3.12-pytest-trio-0.8.0/lib/python3.12/site-packages/pytest_trio/plugin.py", line 193, in _fixture_manager
trio-asyncio>   |     async with trio.open_nursery() as nursery_fixture:
trio-asyncio>   |                ^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/vyq13wihh1spxzk8yhd7y5rhqv4ybfbp-python3.12-trio-0.27.0/lib/python3.12/site-packages/trio/_core/_run.py", line 1039, in __aexit__
trio-asyncio>   |     raise combined_error_from_nursery
trio-asyncio>   | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception)
trio-asyncio>   +-+---------------- 1 ----------------
trio-asyncio>     | Traceback (most recent call last):
trio-asyncio>     |   File "/nix/store/d33kgdzsi31gqwv85g3xilk4b4vliafm-python3.12-pytest-trio-0.8.0/lib/python3.12/site-packages/pytest_trio/plugin.py", line 195, in _fixture_manager
trio-asyncio>     |     yield nursery_fixture
trio-asyncio>     |   File "/nix/store/d33kgdzsi31gqwv85g3xilk4b4vliafm-python3.12-pytest-trio-0.8.0/lib/python3.12/site-packages/pytest_trio/plugin.py", line 250, in run
trio-asyncio>     |     await self._func(**resolved_kwargs)
trio-asyncio>     |   File "/build/source/tests/test_misc.py", line 336, in test_run_trio_task_errors
trio-asyncio>     |     with trio.testing.RaisesGroup(SystemExit, strict=False):
trio-asyncio>     |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>     | TypeError: RaisesGroup.__init__() got an unexpected keyword argument 'strict'
trio-asyncio>     +------------------------------------
trio-asyncio> ___________________ test_cancel_loop_with_tasks[True-False] ____________________
trio-asyncio>   + Exception Group Traceback (most recent call last):
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/runner.py", line 341, in from_call
trio-asyncio>   |     result: TResult | None = func()
trio-asyncio>   |                              ^^^^^^
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/runner.py", line 242, in <lambda>
trio-asyncio>   |     lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
trio-asyncio>   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
trio-asyncio>   |     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
trio-asyncio>   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
trio-asyncio>   |     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
trio-asyncio>   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 182, in _multicall
trio-asyncio>   |     return outcome.get_result()
trio-asyncio>   |            ^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
trio-asyncio>   |     raise exc.with_traceback(exc.__traceback__)
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
trio-asyncio>   |     teardown.throw(outcome._exception)
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/threadexception.py", line 92, in pytest_runtest_call
trio-asyncio>   |     yield from thread_exception_runtest_hook()
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/threadexception.py", line 68, in thread_exception_runtest_hook
trio-asyncio>   |     yield
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
trio-asyncio>   |     teardown.throw(outcome._exception)
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 95, in pytest_runtest_call
trio-asyncio>   |     yield from unraisable_exception_runtest_hook()
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 70, in unraisable_exception_runtest_hook
trio-asyncio>   |     yield
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
trio-asyncio>   |     teardown.throw(outcome._exception)
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/logging.py", line 846, in pytest_runtest_call
trio-asyncio>   |     yield from self._runtest_for(item, "call")
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/logging.py", line 829, in _runtest_for
trio-asyncio>   |     yield
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
trio-asyncio>   |     teardown.throw(outcome._exception)
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/capture.py", line 880, in pytest_runtest_call
trio-asyncio>   |     return (yield)
trio-asyncio>   |             ^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
trio-asyncio>   |     teardown.throw(outcome._exception)
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/skipping.py", line 257, in pytest_runtest_call
trio-asyncio>   |     return (yield)
trio-asyncio>   |             ^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
trio-asyncio>   |     res = hook_impl.function(*args)
trio-asyncio>   |           ^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call
trio-asyncio>   |     item.runtest()
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/python.py", line 1627, in runtest
trio-asyncio>   |     self.ihook.pytest_pyfunc_call(pyfuncitem=self)
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
trio-asyncio>   |     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
trio-asyncio>   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
trio-asyncio>   |     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
trio-asyncio>   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
trio-asyncio>   |     raise exception.with_traceback(exception.__traceback__)
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
trio-asyncio>   |     res = hook_impl.function(*args)
trio-asyncio>   |           ^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call
trio-asyncio>   |     result = testfunction(**testargs)
trio-asyncio>   |              ^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/d33kgdzsi31gqwv85g3xilk4b4vliafm-python3.12-pytest-trio-0.8.0/lib/python3.12/site-packages/pytest_trio/plugin.py", line 348, in wrapper
trio-asyncio>   |     return run(partial(fn, **kwargs), clock=clock, instruments=instruments)
trio-asyncio>   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/vyq13wihh1spxzk8yhd7y5rhqv4ybfbp-python3.12-trio-0.27.0/lib/python3.12/site-packages/trio/_core/_run.py", line 2407, in run
trio-asyncio>   |     raise runner.main_task_outcome.error
trio-asyncio>   |   File "/nix/store/d33kgdzsi31gqwv85g3xilk4b4vliafm-python3.12-pytest-trio-0.8.0/lib/python3.12/site-packages/pytest_trio/plugin.py", line 426, in _bootstrap_fixtures_and_run_test
trio-asyncio>   |     raise test_ctx.error_list[0]
trio-asyncio>   |   File "/nix/store/d33kgdzsi31gqwv85g3xilk4b4vliafm-python3.12-pytest-trio-0.8.0/lib/python3.12/site-packages/pytest_trio/plugin.py", line 193, in _fixture_manager
trio-asyncio>   |     async with trio.open_nursery() as nursery_fixture:
trio-asyncio>   |                ^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/vyq13wihh1spxzk8yhd7y5rhqv4ybfbp-python3.12-trio-0.27.0/lib/python3.12/site-packages/trio/_core/_run.py", line 1039, in __aexit__
trio-asyncio>   |     raise combined_error_from_nursery
trio-asyncio>   | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception)
trio-asyncio>   +-+---------------- 1 ----------------
trio-asyncio>     | Traceback (most recent call last):
trio-asyncio>     |   File "/nix/store/d33kgdzsi31gqwv85g3xilk4b4vliafm-python3.12-pytest-trio-0.8.0/lib/python3.12/site-packages/pytest_trio/plugin.py", line 195, in _fixture_manager
trio-asyncio>     |     yield nursery_fixture
trio-asyncio>     |   File "/nix/store/d33kgdzsi31gqwv85g3xilk4b4vliafm-python3.12-pytest-trio-0.8.0/lib/python3.12/site-packages/pytest_trio/plugin.py", line 250, in run
trio-asyncio>     |     await self._func(**resolved_kwargs)
trio-asyncio>     |   File "/build/source/tests/test_trio_asyncio.py", line 126, in test_cancel_loop_with_tasks
trio-asyncio>     |     catcher = trio.testing.RaisesGroup(
trio-asyncio>     |               ^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>     | TypeError: RaisesGroup.__init__() got an unexpected keyword argument 'strict'
trio-asyncio>     +------------------------------------
trio-asyncio> ____________________ test_cancel_loop_with_tasks[True-True] ____________________
trio-asyncio>   + Exception Group Traceback (most recent call last):
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/runner.py", line 341, in from_call
trio-asyncio>   |     result: TResult | None = func()
trio-asyncio>   |                              ^^^^^^
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/runner.py", line 242, in <lambda>
trio-asyncio>   |     lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
trio-asyncio>   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
trio-asyncio>   |     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
trio-asyncio>   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
trio-asyncio>   |     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
trio-asyncio>   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 182, in _multicall
trio-asyncio>   |     return outcome.get_result()
trio-asyncio>   |            ^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
trio-asyncio>   |     raise exc.with_traceback(exc.__traceback__)
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
trio-asyncio>   |     teardown.throw(outcome._exception)
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/threadexception.py", line 92, in pytest_runtest_call
trio-asyncio>   |     yield from thread_exception_runtest_hook()
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/threadexception.py", line 68, in thread_exception_runtest_hook
trio-asyncio>   |     yield
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
trio-asyncio>   |     teardown.throw(outcome._exception)
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 95, in pytest_runtest_call
trio-asyncio>   |     yield from unraisable_exception_runtest_hook()
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 70, in unraisable_exception_runtest_hook
trio-asyncio>   |     yield
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
trio-asyncio>   |     teardown.throw(outcome._exception)
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/logging.py", line 846, in pytest_runtest_call
trio-asyncio>   |     yield from self._runtest_for(item, "call")
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/logging.py", line 829, in _runtest_for
trio-asyncio>   |     yield
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
trio-asyncio>   |     teardown.throw(outcome._exception)
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/capture.py", line 880, in pytest_runtest_call
trio-asyncio>   |     return (yield)
trio-asyncio>   |             ^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
trio-asyncio>   |     teardown.throw(outcome._exception)
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/skipping.py", line 257, in pytest_runtest_call
trio-asyncio>   |     return (yield)
trio-asyncio>   |             ^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
trio-asyncio>   |     res = hook_impl.function(*args)
trio-asyncio>   |           ^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call
trio-asyncio>   |     item.runtest()
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/python.py", line 1627, in runtest
trio-asyncio>   |     self.ihook.pytest_pyfunc_call(pyfuncitem=self)
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
trio-asyncio>   |     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
trio-asyncio>   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
trio-asyncio>   |     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
trio-asyncio>   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
trio-asyncio>   |     raise exception.with_traceback(exception.__traceback__)
trio-asyncio>   |   File "/nix/store/yw83gmzrnj3ymclk3160qxn9rbra42hs-python3.12-pluggy-1.5.0/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
trio-asyncio>   |     res = hook_impl.function(*args)
trio-asyncio>   |           ^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/bzg3wwihj3njvmyzjd3735ja7fq43aid-python3.12-pytest-8.3.3/lib/python3.12/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call
trio-asyncio>   |     result = testfunction(**testargs)
trio-asyncio>   |              ^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/d33kgdzsi31gqwv85g3xilk4b4vliafm-python3.12-pytest-trio-0.8.0/lib/python3.12/site-packages/pytest_trio/plugin.py", line 348, in wrapper
trio-asyncio>   |     return run(partial(fn, **kwargs), clock=clock, instruments=instruments)
trio-asyncio>   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/vyq13wihh1spxzk8yhd7y5rhqv4ybfbp-python3.12-trio-0.27.0/lib/python3.12/site-packages/trio/_core/_run.py", line 2407, in run
trio-asyncio>   |     raise runner.main_task_outcome.error
trio-asyncio>   |   File "/nix/store/d33kgdzsi31gqwv85g3xilk4b4vliafm-python3.12-pytest-trio-0.8.0/lib/python3.12/site-packages/pytest_trio/plugin.py", line 426, in _bootstrap_fixtures_and_run_test
trio-asyncio>   |     raise test_ctx.error_list[0]
trio-asyncio>   |   File "/nix/store/d33kgdzsi31gqwv85g3xilk4b4vliafm-python3.12-pytest-trio-0.8.0/lib/python3.12/site-packages/pytest_trio/plugin.py", line 193, in _fixture_manager
trio-asyncio>   |     async with trio.open_nursery() as nursery_fixture:
trio-asyncio>   |                ^^^^^^^^^^^^^^^^^^^
trio-asyncio>   |   File "/nix/store/vyq13wihh1spxzk8yhd7y5rhqv4ybfbp-python3.12-trio-0.27.0/lib/python3.12/site-packages/trio/_core/_run.py", line 1039, in __aexit__
trio-asyncio>   |     raise combined_error_from_nursery
trio-asyncio>   | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception)
trio-asyncio>   +-+---------------- 1 ----------------
trio-asyncio>     | Traceback (most recent call last):
trio-asyncio>     |   File "/nix/store/d33kgdzsi31gqwv85g3xilk4b4vliafm-python3.12-pytest-trio-0.8.0/lib/python3.12/site-packages/pytest_trio/plugin.py", line 195, in _fixture_manager
trio-asyncio>     |     yield nursery_fixture
trio-asyncio>     |   File "/nix/store/d33kgdzsi31gqwv85g3xilk4b4vliafm-python3.12-pytest-trio-0.8.0/lib/python3.12/site-packages/pytest_trio/plugin.py", line 250, in run
trio-asyncio>     |     await self._func(**resolved_kwargs)
trio-asyncio>     |   File "/build/source/tests/test_trio_asyncio.py", line 126, in test_cancel_loop_with_tasks
trio-asyncio>     |     catcher = trio.testing.RaisesGroup(
trio-asyncio>     |               ^^^^^^^^^^^^^^^^^^^^^^^^^
trio-asyncio>     | TypeError: RaisesGroup.__init__() got an unexpected keyword argument 'strict'
trio-asyncio>     +------------------------------------
trio-asyncio> =========================== short test summary info ============================
trio-asyncio> FAILED tests/test_misc.py::test_run_trio_task_errors - ExceptionGroup: Exceptions from Trio nursery (1 sub-exception)
trio-asyncio> FAILED tests/test_trio_asyncio.py::test_cancel_loop_with_tasks[True-False] - ExceptionGroup: Exceptions from Trio nursery (1 sub-exception)
trio-asyncio> FAILED tests/test_trio_asyncio.py::test_cancel_loop_with_tasks[True-True] - ExceptionGroup: Exceptions from Trio nursery (1 sub-exception)
trio-asyncio> ======================== 3 failed, 120 passed in 4.11s =========================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant