>>> py3-trio-websocket: Checking sanity of /home/patrycja/aports/community/py3-trio-websocket/APKBUILD... >>> py3-trio-websocket: Cleaning up srcdir >>> py3-trio-websocket: Cleaning up pkgdir >>> py3-trio-websocket: Cleaning up tmpdir >>> py3-trio-websocket: Fetching py3-trio-websocket-0.11.1.tar.gz::https://github.com/python-trio/trio-websocket/archive/refs/tags/0.11.1.tar.gz >>> py3-trio-websocket: Fetching py3-trio-websocket-0.11.1.tar.gz::https://github.com/python-trio/trio-websocket/archive/refs/tags/0.11.1.tar.gz >>> py3-trio-websocket: Checking sha512sums... py3-trio-websocket-0.11.1.tar.gz: OK >>> py3-trio-websocket: Preparing build chroot... (1/144) Installing musl (1.2.5-r0) (2/144) Installing ca-certificates-bundle (20240226-r0) (3/144) Installing libcrypto3 (3.2.1-r2) (4/144) Installing libssl3 (3.2.1-r2) (5/144) Installing zlib (1.3.1-r0) (6/144) Installing apk-tools (2.14.3-r1) (7/144) Installing libattr (2.5.2-r0) (8/144) Installing attr (2.5.2-r0) (9/144) Installing libcap2 (2.69-r1) (10/144) Installing libcap-getcap (2.69-r1) (11/144) Installing fakeroot (1.33-r0) (12/144) Installing scanelf (1.3.7-r2) (13/144) Installing musl-utils (1.2.5-r0) (14/144) Installing libgcc (13.2.1_git20240309-r0) (15/144) Installing libstdc++ (13.2.1_git20240309-r0) (16/144) Installing lzip (1.24.1-r0) (17/144) Installing openssl (3.2.1-r2) (18/144) Installing patch (2.7.6-r10) (19/144) Installing pkgconf (2.2.0-r0) (20/144) Installing libacl (2.3.2-r0) (21/144) Installing tar (1.35-r2) (22/144) Installing busybox (1.36.1-r25) Executing busybox-1.36.1-r25.post-install (23/144) Installing ssl_client (1.36.1-r25) (24/144) Installing busybox-binsh (1.36.1-r25) (25/144) Installing abuild (3.12.0-r5) Executing abuild-3.12.0-r5.pre-install (26/144) Installing abuild-sudo (3.12.0-r5) (27/144) Installing alpine-baselayout-data (3.6.3-r0) (28/144) Installing alpine-baselayout (3.6.3-r0) Executing alpine-baselayout-3.6.3-r0.pre-install Executing alpine-baselayout-3.6.3-r0.post-install (29/144) Installing ifupdown-ng (0.12.1-r5) (30/144) Installing openrc (0.54-r1) Executing openrc-0.54-r1.post-install (31/144) Installing mdev-conf (4.6-r0) (32/144) Installing busybox-mdev-openrc (1.36.1-r25) (33/144) Installing alpine-conf (3.17.2-r0) (34/144) Installing alpine-keys (2.4-r1) (35/144) Installing alpine-release (3.20.0_alpha20240329-r0) (36/144) Installing busybox-openrc (1.36.1-r25) (37/144) Installing busybox-suid (1.36.1-r25) (38/144) Installing alpine-base (3.20.0_alpha20240329-r0) (39/144) Installing jansson (2.14-r4) (40/144) Installing zstd-libs (1.5.6-r0) (41/144) Installing binutils (2.42-r0) (42/144) Installing libmagic (5.45-r1) (43/144) Installing file (5.45-r1) (44/144) Installing libgomp (13.2.1_git20240309-r0) (45/144) Installing libatomic (13.2.1_git20240309-r0) (46/144) Installing gmp (6.3.0-r0) (47/144) Installing isl26 (0.26-r1) (48/144) Installing mpfr4 (4.2.1-r0) (49/144) Installing mpc1 (1.3.1-r1) (50/144) Installing gcc (13.2.1_git20240309-r0) (51/144) Installing libstdc++-dev (13.2.1_git20240309-r0) (52/144) Installing musl-dev (1.2.5-r0) (53/144) Installing g++ (13.2.1_git20240309-r0) (54/144) Installing make (4.4.1-r2) (55/144) Installing fortify-headers (1.1-r3) (56/144) Installing build-base (0.5-r3) (57/144) Installing hiredis (1.2.0-r0) (58/144) Installing libxxhash (0.8.2-r2) (59/144) Installing ccache (4.9.1-r0) (60/144) Installing ca-certificates (20240226-r0) (61/144) Installing brotli-libs (1.1.0-r2) (62/144) Installing c-ares (1.28.1-r0) (63/144) Installing libunistring (1.2-r0) (64/144) Installing libidn2 (2.3.7-r0) (65/144) Installing nghttp2-libs (1.61.0-r0) (66/144) Installing libpsl (0.21.5-r1) (67/144) Installing libcurl (8.7.1-r0) (68/144) Installing libexpat (2.6.2-r0) (69/144) Installing pcre2 (10.43-r0) (70/144) Installing git (2.44.0-r2) (71/144) Installing git-init-template (2.44.0-r2) (72/144) Installing libbz2 (1.0.8-r6) (73/144) Installing libffi (3.4.6-r0) (74/144) Installing gdbm (1.23-r1) (75/144) Installing xz-libs (5.6.1-r2) (76/144) Installing mpdecimal (4.0.0-r0) (77/144) Installing ncurses-terminfo-base (6.4_p20240309-r0) (78/144) Installing libncursesw (6.4_p20240309-r0) (79/144) Installing libpanelw (6.4_p20240309-r0) (80/144) Installing readline (8.2.10-r0) (81/144) Installing sqlite-libs (3.45.2-r0) (82/144) Installing python3 (3.12.2-r0) (83/144) Installing python3-pycache-pyc0 (3.12.2-r0) (84/144) Installing pyc (3.12.2-r0) (85/144) Installing py3-installer-pyc (0.7.0-r2) (86/144) Installing py3-gpep517-pyc (15-r2) (87/144) Installing python3-pyc (3.12.2-r0) (88/144) Installing py3-installer (0.7.0-r2) (89/144) Installing py3-gpep517 (15-r2) (90/144) Installing py3-iniconfig (2.0.0-r1) (91/144) Installing py3-iniconfig-pyc (2.0.0-r1) (92/144) Installing py3-parsing (3.1.2-r1) (93/144) Installing py3-parsing-pyc (3.1.2-r1) (94/144) Installing py3-packaging (24.0-r1) (95/144) Installing py3-packaging-pyc (24.0-r1) (96/144) Installing py3-pluggy (1.4.0-r1) (97/144) Installing py3-pluggy-pyc (1.4.0-r1) (98/144) Installing py3-py (1.11.0-r3) (99/144) Installing py3-py-pyc (1.11.0-r3) (100/144) Installing py3-pytest (8.1.1-r1) (101/144) Installing py3-pytest-pyc (8.1.1-r1) (102/144) Installing py3-attrs (23.2.0-r1) (103/144) Installing py3-attrs-pyc (23.2.0-r1) (104/144) Installing py3-async_generator (1.10-r6) (105/144) Installing py3-async_generator-pyc (1.10-r6) (106/144) Installing py3-idna (3.6-r1) (107/144) Installing py3-idna-pyc (3.6-r1) (108/144) Installing py3-cparser (2.21-r5) (109/144) Installing py3-cparser-pyc (2.21-r5) (110/144) Installing py3-cffi (1.16.0-r1) (111/144) Installing py3-cffi-pyc (1.16.0-r1) (112/144) Installing py3-cryptography (42.0.5-r1) (113/144) Installing py3-cryptography-pyc (42.0.5-r1) (114/144) Installing py3-openssl (24.1.0-r1) (115/144) Installing py3-openssl-pyc (24.1.0-r1) (116/144) Installing py3-outcome (1.3.0-r1) (117/144) Installing py3-outcome-pyc (1.3.0-r1) (118/144) Installing py3-curio (1.6-r2) (119/144) Installing py3-curio-pyc (1.6-r2) (120/144) Installing py3-sniffio (1.3.1-r1) (121/144) Installing py3-sniffio-pyc (1.3.1-r1) (122/144) Installing py3-sortedcontainers (2.4.0-r5) (123/144) Installing py3-sortedcontainers-pyc (2.4.0-r5) (124/144) Installing py3-trio (0.25.0-r1) (125/144) Installing py3-trio-pyc (0.25.0-r1) (126/144) Installing py3-pytest-trio (0.8.0-r3) (127/144) Installing py3-pytest-trio-pyc (0.8.0-r3) (128/144) Installing py3-setuptools (69.2.0-r1) (129/144) Installing py3-setuptools-pyc (69.2.0-r1) (130/144) Installing py3-asn1 (0.6.0-r1) (131/144) Installing py3-asn1-pyc (0.6.0-r1) (132/144) Installing py3-asn1-modules (0.3.0-r2) (133/144) Installing py3-asn1-modules-pyc (0.3.0-r2) (134/144) Installing py3-service_identity (24.1.0-r1) (135/144) Installing py3-service_identity-pyc (24.1.0-r1) (136/144) Installing py3-trustme (1.1.0-r1) (137/144) Installing py3-trustme-pyc (1.1.0-r1) (138/144) Installing py3-wheel (0.42.0-r1) (139/144) Installing py3-wheel-pyc (0.42.0-r1) (140/144) Installing py3-h11 (0.14.0-r4) (141/144) Installing py3-h11-pyc (0.14.0-r4) (142/144) Installing py3-wsproto (1.2.0-r3) (143/144) Installing py3-wsproto-pyc (1.2.0-r3) (144/144) Installing tini (0.19.0-r3) Executing busybox-1.36.1-r25.trigger Executing ca-certificates-20240226-r0.trigger OK: 312 MiB in 144 packages >>> py3-trio-websocket: Fetching py3-trio-websocket-0.11.1.tar.gz::https://github.com/python-trio/trio-websocket/archive/refs/tags/0.11.1.tar.gz >>> py3-trio-websocket: Checking sha512sums... py3-trio-websocket-0.11.1.tar.gz: OK >>> py3-trio-websocket: Unpacking /var/cache/distfiles/py3-trio-websocket-0.11.1.tar.gz... 2024-04-11 10:08:14,971 gpep517 INFO Building wheel via backend setuptools.build_meta:__legacy__ 2024-04-11 10:08:14,991 root INFO running bdist_wheel 2024-04-11 10:08:15,003 root INFO running build 2024-04-11 10:08:15,003 root INFO running build_py 2024-04-11 10:08:15,006 root INFO creating build 2024-04-11 10:08:15,006 root INFO creating build/lib 2024-04-11 10:08:15,006 root INFO creating build/lib/trio_websocket 2024-04-11 10:08:15,006 root INFO copying trio_websocket/_impl.py -> build/lib/trio_websocket 2024-04-11 10:08:15,006 root INFO copying trio_websocket/_version.py -> build/lib/trio_websocket 2024-04-11 10:08:15,006 root INFO copying trio_websocket/__init__.py -> build/lib/trio_websocket 2024-04-11 10:08:15,010 wheel INFO installing to build/bdist.linux-x86_64/wheel 2024-04-11 10:08:15,010 root INFO running install 2024-04-11 10:08:15,017 root INFO running install_lib 2024-04-11 10:08:15,019 root INFO creating build/bdist.linux-x86_64 2024-04-11 10:08:15,019 root INFO creating build/bdist.linux-x86_64/wheel 2024-04-11 10:08:15,019 root INFO creating build/bdist.linux-x86_64/wheel/trio_websocket 2024-04-11 10:08:15,019 root INFO copying build/lib/trio_websocket/_impl.py -> build/bdist.linux-x86_64/wheel/trio_websocket 2024-04-11 10:08:15,020 root INFO copying build/lib/trio_websocket/_version.py -> build/bdist.linux-x86_64/wheel/trio_websocket 2024-04-11 10:08:15,020 root INFO copying build/lib/trio_websocket/__init__.py -> build/bdist.linux-x86_64/wheel/trio_websocket 2024-04-11 10:08:15,020 root INFO running install_egg_info 2024-04-11 10:08:15,024 root INFO running egg_info 2024-04-11 10:08:15,024 root INFO creating trio_websocket.egg-info 2024-04-11 10:08:15,026 root INFO writing trio_websocket.egg-info/PKG-INFO 2024-04-11 10:08:15,026 root INFO writing dependency_links to trio_websocket.egg-info/dependency_links.txt 2024-04-11 10:08:15,026 root INFO writing requirements to trio_websocket.egg-info/requires.txt 2024-04-11 10:08:15,026 root INFO writing top-level names to trio_websocket.egg-info/top_level.txt 2024-04-11 10:08:15,026 root INFO writing manifest file 'trio_websocket.egg-info/SOURCES.txt' 2024-04-11 10:08:15,029 root INFO reading manifest file 'trio_websocket.egg-info/SOURCES.txt' 2024-04-11 10:08:15,029 root INFO reading manifest template 'MANIFEST.in' 2024-04-11 10:08:15,029 root INFO adding license file 'LICENSE' 2024-04-11 10:08:15,029 root INFO writing manifest file 'trio_websocket.egg-info/SOURCES.txt' 2024-04-11 10:08:15,029 root INFO Copying trio_websocket.egg-info to build/bdist.linux-x86_64/wheel/trio_websocket-0.11.1-py3.12.egg-info 2024-04-11 10:08:15,030 root INFO running install_scripts 2024-04-11 10:08:15,032 wheel INFO creating build/bdist.linux-x86_64/wheel/trio_websocket-0.11.1.dist-info/WHEEL 2024-04-11 10:08:15,032 wheel INFO creating '/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/.dist/.tmp-haz496ox/trio_websocket-0.11.1-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it 2024-04-11 10:08:15,032 wheel INFO adding 'trio_websocket/__init__.py' 2024-04-11 10:08:15,032 wheel INFO adding 'trio_websocket/_impl.py' 2024-04-11 10:08:15,033 wheel INFO adding 'trio_websocket/_version.py' 2024-04-11 10:08:15,033 wheel INFO adding 'trio_websocket-0.11.1.dist-info/LICENSE' 2024-04-11 10:08:15,033 wheel INFO adding 'trio_websocket-0.11.1.dist-info/METADATA' 2024-04-11 10:08:15,033 wheel INFO adding 'trio_websocket-0.11.1.dist-info/WHEEL' 2024-04-11 10:08:15,033 wheel INFO adding 'trio_websocket-0.11.1.dist-info/top_level.txt' 2024-04-11 10:08:15,033 wheel INFO adding 'trio_websocket-0.11.1.dist-info/RECORD' 2024-04-11 10:08:15,033 wheel INFO removing build/bdist.linux-x86_64/wheel 2024-04-11 10:08:15,034 gpep517 INFO The backend produced .dist/trio_websocket-0.11.1-py3-none-any.whl trio_websocket-0.11.1-py3-none-any.whl ============================= test session starts ============================== platform linux -- Python 3.12.2, pytest-8.1.1, pluggy-1.4.0 rootdir: /home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1 configfile: pytest.ini plugins: trio-0.8.0 collected 58 items tests/test_connection.py .........................FFF...........FFF..... [ 81%] .........F. [100%] =================================== FAILURES =================================== ____________________ test_handshake_exception_before_accept ____________________ + Exception Group Traceback (most recent call last): | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 340, in from_call | result: Optional[TResult] = func() | ^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 240, in | lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 501, in __call__ | return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 119, in _hookexec | return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 181, in _multicall | return outcome.get_result() | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 99, in get_result | raise exc.with_traceback(exc.__traceback__) | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/threadexception.py", line 87, in pytest_runtest_call | yield from thread_exception_runtest_hook() | File "/usr/lib/python3.12/site-packages/_pytest/threadexception.py", line 63, in thread_exception_runtest_hook | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 90, in pytest_runtest_call | yield from unraisable_exception_runtest_hook() | File "/usr/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 65, in unraisable_exception_runtest_hook | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 849, in pytest_runtest_call | yield from self._runtest_for(item, "call") | File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 832, in _runtest_for | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/capture.py", line 883, in pytest_runtest_call | return (yield) | ^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/skipping.py", line 256, in pytest_runtest_call | return (yield) | ^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 102, in _multicall | res = hook_impl.function(*args) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 182, in pytest_runtest_call | raise e | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 172, in pytest_runtest_call | item.runtest() | File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 1772, in runtest | self.ihook.pytest_pyfunc_call(pyfuncitem=self) | File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 501, in __call__ | return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 119, in _hookexec | return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 138, in _multicall | raise exception.with_traceback(exception.__traceback__) | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 102, in _multicall | res = hook_impl.function(*args) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 195, in pytest_pyfunc_call | result = testfunction(**testargs) | ^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 348, in wrapper | return run(partial(fn, **kwargs), clock=clock, instruments=instruments) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 2288, in run | raise runner.main_task_outcome.error | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 426, in _bootstrap_fixtures_and_run_test | raise test_ctx.error_list[0] | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 193, in _fixture_manager | async with trio.open_nursery() as nursery_fixture: | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 954, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 195, in _fixture_manager | yield nursery_fixture | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 250, in run | await self._func(**resolved_kwargs) | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/tests/test_connection.py", line 123, in wrapper | await fn(*args, **kwargs) | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/tests/test_connection.py", line 432, in test_handshake_exception_before_accept | async with trio.open_nursery() as nursery: | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 954, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/trio_websocket/_impl.py", line 432, in serve_websocket | await server.run(task_status=task_status) | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/trio_websocket/_impl.py", line 1408, in run | async with trio.open_nursery() as nursery: | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 954, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/usr/lib/python3.12/site-packages/trio/_highlevel_serve_listeners.py", line 135, in serve_listeners | async with trio.open_nursery() as nursery: | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 954, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/usr/lib/python3.12/site-packages/trio/_highlevel_serve_listeners.py", line 33, in _run_handler | await handler(stream) | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/trio_websocket/_impl.py", line 1426, in _handle_connection | async with trio.open_nursery() as nursery: | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 954, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/trio_websocket/_impl.py", line 1439, in _handle_connection | await self._handler(request) | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/tests/test_connection.py", line 429, in handler | raise ValueError() | ValueError +------------------------------------ ____________________________ test_reject_handshake _____________________________ + Exception Group Traceback (most recent call last): | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 340, in from_call | result: Optional[TResult] = func() | ^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 240, in | lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 501, in __call__ | return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 119, in _hookexec | return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 181, in _multicall | return outcome.get_result() | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 99, in get_result | raise exc.with_traceback(exc.__traceback__) | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/threadexception.py", line 87, in pytest_runtest_call | yield from thread_exception_runtest_hook() | File "/usr/lib/python3.12/site-packages/_pytest/threadexception.py", line 63, in thread_exception_runtest_hook | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 90, in pytest_runtest_call | yield from unraisable_exception_runtest_hook() | File "/usr/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 65, in unraisable_exception_runtest_hook | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 849, in pytest_runtest_call | yield from self._runtest_for(item, "call") | File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 832, in _runtest_for | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/capture.py", line 883, in pytest_runtest_call | return (yield) | ^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/skipping.py", line 256, in pytest_runtest_call | return (yield) | ^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 102, in _multicall | res = hook_impl.function(*args) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 182, in pytest_runtest_call | raise e | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 172, in pytest_runtest_call | item.runtest() | File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 1772, in runtest | self.ihook.pytest_pyfunc_call(pyfuncitem=self) | File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 501, in __call__ | return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 119, in _hookexec | return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 138, in _multicall | raise exception.with_traceback(exception.__traceback__) | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 102, in _multicall | res = hook_impl.function(*args) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 195, in pytest_pyfunc_call | result = testfunction(**testargs) | ^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 348, in wrapper | return run(partial(fn, **kwargs), clock=clock, instruments=instruments) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 2288, in run | raise runner.main_task_outcome.error | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 426, in _bootstrap_fixtures_and_run_test | raise test_ctx.error_list[0] | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 193, in _fixture_manager | async with trio.open_nursery() as nursery_fixture: | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 954, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 195, in _fixture_manager | yield nursery_fixture | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 250, in run | await self._func(**resolved_kwargs) | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/tests/test_connection.py", line 123, in wrapper | await fn(*args, **kwargs) | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/tests/test_connection.py", line 448, in test_reject_handshake | async with open_websocket(HOST, server.port, RESOURCE, use_ssl=False, | File "/usr/lib/python3.12/contextlib.py", line 210, in __aenter__ | return await anext(self.gen) | ^^^^^^^^^^^^^^^^^^^^^ | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/trio_websocket/_impl.py", line 117, in open_websocket | async with trio.open_nursery() as new_nursery: | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 954, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/trio_websocket/_impl.py", line 1225, in _reader_task | await handler(event) | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/trio_websocket/_impl.py", line 1100, in _handle_reject_data_event | raise ConnectionRejected(self._reject_status, self._reject_headers, | trio_websocket._impl.ConnectionRejected +------------------------------------ __________________ test_reject_handshake_invalid_info_status ___________________ + Exception Group Traceback (most recent call last): | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 340, in from_call | result: Optional[TResult] = func() | ^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 240, in | lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 501, in __call__ | return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 119, in _hookexec | return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 181, in _multicall | return outcome.get_result() | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 99, in get_result | raise exc.with_traceback(exc.__traceback__) | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/threadexception.py", line 87, in pytest_runtest_call | yield from thread_exception_runtest_hook() | File "/usr/lib/python3.12/site-packages/_pytest/threadexception.py", line 63, in thread_exception_runtest_hook | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 90, in pytest_runtest_call | yield from unraisable_exception_runtest_hook() | File "/usr/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 65, in unraisable_exception_runtest_hook | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 849, in pytest_runtest_call | yield from self._runtest_for(item, "call") | File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 832, in _runtest_for | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/capture.py", line 883, in pytest_runtest_call | return (yield) | ^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/skipping.py", line 256, in pytest_runtest_call | return (yield) | ^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 102, in _multicall | res = hook_impl.function(*args) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 182, in pytest_runtest_call | raise e | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 172, in pytest_runtest_call | item.runtest() | File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 1772, in runtest | self.ihook.pytest_pyfunc_call(pyfuncitem=self) | File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 501, in __call__ | return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 119, in _hookexec | return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 138, in _multicall | raise exception.with_traceback(exception.__traceback__) | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 102, in _multicall | res = hook_impl.function(*args) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 195, in pytest_pyfunc_call | result = testfunction(**testargs) | ^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 348, in wrapper | return run(partial(fn, **kwargs), clock=clock, instruments=instruments) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 2288, in run | raise runner.main_task_outcome.error | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 426, in _bootstrap_fixtures_and_run_test | raise test_ctx.error_list[0] | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 193, in _fixture_manager | async with trio.open_nursery() as nursery_fixture: | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 954, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 195, in _fixture_manager | yield nursery_fixture | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 250, in run | await self._func(**resolved_kwargs) | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/tests/test_connection.py", line 123, in wrapper | await fn(*args, **kwargs) | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/tests/test_connection.py", line 470, in test_reject_handshake_invalid_info_status | async with open_websocket(HOST, port, RESOURCE, use_ssl=False, | File "/usr/lib/python3.12/contextlib.py", line 210, in __aenter__ | return await anext(self.gen) | ^^^^^^^^^^^^^^^^^^^^^ | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/trio_websocket/_impl.py", line 117, in open_websocket | async with trio.open_nursery() as new_nursery: | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 954, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/trio_websocket/_impl.py", line 1225, in _reader_task | await handler(event) | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/trio_websocket/_impl.py", line 1089, in _handle_reject_connection_event | raise ConnectionRejected(self._reject_status, self._reject_headers, | trio_websocket._impl.ConnectionRejected +------------------------------------ ___________________________ test_client_open_timeout ___________________________ + Exception Group Traceback (most recent call last): | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 340, in from_call | result: Optional[TResult] = func() | ^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 240, in | lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 501, in __call__ | return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 119, in _hookexec | return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 181, in _multicall | return outcome.get_result() | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 99, in get_result | raise exc.with_traceback(exc.__traceback__) | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/threadexception.py", line 87, in pytest_runtest_call | yield from thread_exception_runtest_hook() | File "/usr/lib/python3.12/site-packages/_pytest/threadexception.py", line 63, in thread_exception_runtest_hook | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 90, in pytest_runtest_call | yield from unraisable_exception_runtest_hook() | File "/usr/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 65, in unraisable_exception_runtest_hook | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 849, in pytest_runtest_call | yield from self._runtest_for(item, "call") | File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 832, in _runtest_for | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/capture.py", line 883, in pytest_runtest_call | return (yield) | ^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/skipping.py", line 256, in pytest_runtest_call | return (yield) | ^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 102, in _multicall | res = hook_impl.function(*args) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 182, in pytest_runtest_call | raise e | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 172, in pytest_runtest_call | item.runtest() | File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 1772, in runtest | self.ihook.pytest_pyfunc_call(pyfuncitem=self) | File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 501, in __call__ | return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 119, in _hookexec | return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 138, in _multicall | raise exception.with_traceback(exception.__traceback__) | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 102, in _multicall | res = hook_impl.function(*args) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 195, in pytest_pyfunc_call | result = testfunction(**testargs) | ^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 348, in wrapper | return run(partial(fn, **kwargs), clock=clock, instruments=instruments) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 2288, in run | raise runner.main_task_outcome.error | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 426, in _bootstrap_fixtures_and_run_test | raise test_ctx.error_list[0] | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 193, in _fixture_manager | async with trio.open_nursery() as nursery_fixture: | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 954, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 195, in _fixture_manager | yield nursery_fixture | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 250, in run | await self._func(**resolved_kwargs) | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/tests/test_connection.py", line 123, in wrapper | await fn(*args, **kwargs) | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/tests/test_connection.py", line 614, in test_client_open_timeout | async with open_websocket(HOST, server.port, '/', use_ssl=False, | File "/usr/lib/python3.12/contextlib.py", line 210, in __aenter__ | return await anext(self.gen) | ^^^^^^^^^^^^^^^^^^^^^ | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/trio_websocket/_impl.py", line 117, in open_websocket | async with trio.open_nursery() as new_nursery: | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 954, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/trio_websocket/_impl.py", line 126, in open_websocket | raise ConnectionTimeout from None | trio_websocket._impl.ConnectionTimeout +------------------------------------ __________________________ test_client_close_timeout ___________________________ + Exception Group Traceback (most recent call last): | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 340, in from_call | result: Optional[TResult] = func() | ^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 240, in | lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 501, in __call__ | return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 119, in _hookexec | return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 181, in _multicall | return outcome.get_result() | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 99, in get_result | raise exc.with_traceback(exc.__traceback__) | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/threadexception.py", line 87, in pytest_runtest_call | yield from thread_exception_runtest_hook() | File "/usr/lib/python3.12/site-packages/_pytest/threadexception.py", line 63, in thread_exception_runtest_hook | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 90, in pytest_runtest_call | yield from unraisable_exception_runtest_hook() | File "/usr/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 65, in unraisable_exception_runtest_hook | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 849, in pytest_runtest_call | yield from self._runtest_for(item, "call") | File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 832, in _runtest_for | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/capture.py", line 883, in pytest_runtest_call | return (yield) | ^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/skipping.py", line 256, in pytest_runtest_call | return (yield) | ^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 102, in _multicall | res = hook_impl.function(*args) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 182, in pytest_runtest_call | raise e | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 172, in pytest_runtest_call | item.runtest() | File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 1772, in runtest | self.ihook.pytest_pyfunc_call(pyfuncitem=self) | File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 501, in __call__ | return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 119, in _hookexec | return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 138, in _multicall | raise exception.with_traceback(exception.__traceback__) | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 102, in _multicall | res = hook_impl.function(*args) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 195, in pytest_pyfunc_call | result = testfunction(**testargs) | ^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 348, in wrapper | return run(partial(fn, **kwargs), clock=clock, instruments=instruments) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 2288, in run | raise runner.main_task_outcome.error | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 426, in _bootstrap_fixtures_and_run_test | raise test_ctx.error_list[0] | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 193, in _fixture_manager | async with trio.open_nursery() as nursery_fixture: | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 954, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 195, in _fixture_manager | yield nursery_fixture | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 250, in run | await self._func(**resolved_kwargs) | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/tests/test_connection.py", line 123, in wrapper | await fn(*args, **kwargs) | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/tests/test_connection.py", line 642, in test_client_close_timeout | async with open_websocket(HOST, server.port, RESOURCE, use_ssl=False, | File "/usr/lib/python3.12/contextlib.py", line 217, in __aexit__ | await anext(self.gen) | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/trio_websocket/_impl.py", line 117, in open_websocket | async with trio.open_nursery() as new_nursery: | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 954, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/trio_websocket/_impl.py", line 136, in open_websocket | raise DisconnectionTimeout from None | trio_websocket._impl.DisconnectionTimeout +------------------------------------ _____________________ test_client_connect_networking_error _____________________ + Exception Group Traceback (most recent call last): | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 340, in from_call | result: Optional[TResult] = func() | ^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 240, in | lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 501, in __call__ | return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 119, in _hookexec | return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 181, in _multicall | return outcome.get_result() | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 99, in get_result | raise exc.with_traceback(exc.__traceback__) | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/threadexception.py", line 87, in pytest_runtest_call | yield from thread_exception_runtest_hook() | File "/usr/lib/python3.12/site-packages/_pytest/threadexception.py", line 63, in thread_exception_runtest_hook | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 90, in pytest_runtest_call | yield from unraisable_exception_runtest_hook() | File "/usr/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 65, in unraisable_exception_runtest_hook | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 849, in pytest_runtest_call | yield from self._runtest_for(item, "call") | File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 832, in _runtest_for | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/capture.py", line 883, in pytest_runtest_call | return (yield) | ^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/skipping.py", line 256, in pytest_runtest_call | return (yield) | ^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 102, in _multicall | res = hook_impl.function(*args) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 182, in pytest_runtest_call | raise e | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 172, in pytest_runtest_call | item.runtest() | File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 1772, in runtest | self.ihook.pytest_pyfunc_call(pyfuncitem=self) | File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 501, in __call__ | return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 119, in _hookexec | return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 138, in _multicall | raise exception.with_traceback(exception.__traceback__) | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 102, in _multicall | res = hook_impl.function(*args) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 195, in pytest_pyfunc_call | result = testfunction(**testargs) | ^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 348, in wrapper | return run(partial(fn, **kwargs), clock=clock, instruments=instruments) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 2288, in run | raise runner.main_task_outcome.error | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 426, in _bootstrap_fixtures_and_run_test | raise test_ctx.error_list[0] | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 193, in _fixture_manager | async with trio.open_nursery() as nursery_fixture: | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 954, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 195, in _fixture_manager | yield nursery_fixture | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 250, in run | await self._func(**resolved_kwargs) | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/tests/test_connection.py", line 652, in test_client_connect_networking_error | async with open_websocket(HOST, 0, '/', use_ssl=False) as client_ws: | File "/usr/lib/python3.12/contextlib.py", line 210, in __aenter__ | return await anext(self.gen) | ^^^^^^^^^^^^^^^^^^^^^ | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/trio_websocket/_impl.py", line 117, in open_websocket | async with trio.open_nursery() as new_nursery: | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 954, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/trio_websocket/_impl.py", line 120, in open_websocket | connection = await connect_websocket(new_nursery, host, port, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/unittest/mock.py", line 2259, in _execute_mock_call | raise effect | OSError | | The above exception was the direct cause of the following exception: | | Traceback (most recent call last): | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/trio_websocket/_impl.py", line 128, in open_websocket | raise HandshakeError from e | trio_websocket._impl.HandshakeError +------------------------------------ _____________________ test_finalization_dropped_exception ______________________ + Exception Group Traceback (most recent call last): | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 340, in from_call | result: Optional[TResult] = func() | ^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 240, in | lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 501, in __call__ | return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 119, in _hookexec | return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 181, in _multicall | return outcome.get_result() | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 99, in get_result | raise exc.with_traceback(exc.__traceback__) | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/threadexception.py", line 87, in pytest_runtest_call | yield from thread_exception_runtest_hook() | File "/usr/lib/python3.12/site-packages/_pytest/threadexception.py", line 63, in thread_exception_runtest_hook | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 90, in pytest_runtest_call | yield from unraisable_exception_runtest_hook() | File "/usr/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 65, in unraisable_exception_runtest_hook | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 849, in pytest_runtest_call | yield from self._runtest_for(item, "call") | File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 832, in _runtest_for | yield | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/capture.py", line 883, in pytest_runtest_call | return (yield) | ^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 166, in _multicall | teardown.throw(outcome._exception) | File "/usr/lib/python3.12/site-packages/_pytest/skipping.py", line 256, in pytest_runtest_call | return (yield) | ^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 102, in _multicall | res = hook_impl.function(*args) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 182, in pytest_runtest_call | raise e | File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 172, in pytest_runtest_call | item.runtest() | File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 1772, in runtest | self.ihook.pytest_pyfunc_call(pyfuncitem=self) | File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 501, in __call__ | return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 119, in _hookexec | return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 138, in _multicall | raise exception.with_traceback(exception.__traceback__) | File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 102, in _multicall | res = hook_impl.function(*args) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 195, in pytest_pyfunc_call | result = testfunction(**testargs) | ^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 348, in wrapper | return run(partial(fn, **kwargs), clock=clock, instruments=instruments) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 2288, in run | raise runner.main_task_outcome.error | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 426, in _bootstrap_fixtures_and_run_test | raise test_ctx.error_list[0] | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 193, in _fixture_manager | async with trio.open_nursery() as nursery_fixture: | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 954, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 195, in _fixture_manager | yield nursery_fixture | File "/usr/lib/python3.12/site-packages/pytest_trio/plugin.py", line 250, in run | await self._func(**resolved_kwargs) | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/tests/test_connection.py", line 1014, in test_finalization_dropped_exception | with trio.move_on_after(1): | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 643, in __exit__ | raise remaining_error_after_cancel_scope | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/tests/test_connection.py", line 1015, in test_finalization_dropped_exception | async with open_websocket(HOST, echo_server.port, RESOURCE, use_ssl=False): | File "/usr/lib/python3.12/contextlib.py", line 231, in __aexit__ | await self.gen.athrow(value) | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/trio_websocket/_impl.py", line 117, in open_websocket | async with trio.open_nursery() as new_nursery: | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 954, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/tests/test_connection.py", line 1017, in test_finalization_dropped_exception | await trio.sleep_forever() | File "/usr/lib/python3.12/site-packages/trio/_timeouts.py", line 48, in sleep_forever | await trio.lowlevel.wait_task_rescheduled(lambda _: trio.lowlevel.Abort.SUCCEEDED) | File "/usr/lib/python3.12/site-packages/trio/_core/_traps.py", line 179, in wait_task_rescheduled | return (await _async_yield(WaitTaskRescheduled(abort_func))).unwrap() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3.12/site-packages/outcome/_impl.py", line 213, in unwrap | raise captured_error | File "/usr/lib/python3.12/site-packages/trio/_core/_run.py", line 1441, in raise_cancel | raise Cancelled._create() | trio.Cancelled: Cancelled | | During handling of the above exception, another exception occurred: | | Traceback (most recent call last): | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/trio_websocket/_impl.py", line 130, in open_websocket | yield connection | File "/home/patrycja/aports/community/py3-trio-websocket/src/trio-websocket-0.11.1/tests/test_connection.py", line 1019, in test_finalization_dropped_exception | raise ValueError | ValueError +------------------------------------ =========================== short test summary info ============================ FAILED tests/test_connection.py::test_handshake_exception_before_accept - Exc... FAILED tests/test_connection.py::test_reject_handshake - ExceptionGroup: Exce... FAILED tests/test_connection.py::test_reject_handshake_invalid_info_status - ... FAILED tests/test_connection.py::test_client_open_timeout - ExceptionGroup: E... FAILED tests/test_connection.py::test_client_close_timeout - ExceptionGroup: ... FAILED tests/test_connection.py::test_client_connect_networking_error - Excep... FAILED tests/test_connection.py::test_finalization_dropped_exception - Except... ========================= 7 failed, 51 passed in 0.30s ========================= >>> ERROR: py3-trio-websocket: check failed >>> ERROR: py3-trio-websocket: rootbld failed >>> py3-trio-websocket: Cleaning up build chroot