Closed dabao1990 closed 2 months ago
If I understand your report correctly — I used Google Translate — this paragraph of the documentation addresses your situation: https://websockets.readthedocs.io/en/latest/project/contributing.html#packaging
This discussion should be relevant: https://github.com/python-websockets/websockets/issues/1509#issuecomment-2366606121 I think it's the same cause.
NAME="openEuler" VERSION="20.03 (LTS)"
====================== spack install websockets@13.1 cd websockets/tests
======================= 执行pytest,报如下错误
=======================
self =
asyncio/testclient.py:119: AssertionError ____ ClientConnectionTests.test_close_waits_for_close_frame __
self =
asyncio/test_connection.py:663: AssertionError __ ClientConnectionTests.test_close_waits_for_connection_closed ___
self =
asyncio/testconnection.py:678: AssertionError ____ ServerConnectionTests.test_close_waits_for_close_frame __
self =
asyncio/test_connection.py:663: AssertionError __ ServerTests.test_close_server_keeps_connections_open ___
self =
asyncio/test_server.py:483:
self = <websockets.asyncio.server.Server object at 0xffffbb362670>
/home/spack/opt/spack/linux-openeuler22-aarch64/gcc-10.3.1/py-websockets-13.1-qa2xe376b2nzrshek3l3hxu4i5kgsj4x/lib/python3.8/site-packages/websockets/asyncio/server.py:492: CancelledError
During handling of the above exception, another exception occurred:
self =
asyncio/test_server.py:483:
/home/spack/opt/spack/linux-openeuler22-aarch64/gcc-10.3.1/py-websockets-13.1-qa2xe376b2nzrshek3l3hxu4i5kgsj4x/lib/python3.8/site-packages/websockets/asyncio/async_timeout.py:181: in aexit self._do_exit(exc_type)
self = <websockets.asyncio.async_timeout.Timeout object at 0xffffba94e950>, exc_type = <class 'asyncio.exceptions.CancelledError'>
/home/spack/opt/spack/linux-openeuler22-aarch64/gcc-10.3.1/py-websockets-13.1-qa2xe376b2nzrshek3l3hxu4i5kgsj4x/lib/python3.8/site-packages/websockets/asyncio/async_timeout.py:268: TimeoutError __ ServerTests.test_close_server_keeps_handlers_running ___
self =
asyncio/test_server.py:500:
self = <websockets.asyncio.server.Server object at 0xffffbb3b4670>
/home/spack/opt/spack/linux-openeuler22-aarch64/gcc-10.3.1/py-websockets-13.1-qa2xe376b2nzrshek3l3hxu4i5kgsj4x/lib/python3.8/site-packages/websockets/asyncio/server.py:492: CancelledError
During handling of the above exception, another exception occurred:
self =
asyncio/test_server.py:500:
/home/spack/opt/spack/linux-openeuler22-aarch64/gcc-10.3.1/py-websockets-13.1-qa2xe376b2nzrshek3l3hxu4i5kgsj4x/lib/python3.8/site-packages/websockets/asyncio/async_timeout.py:181: in aexit self._do_exit(exc_type)
self = <websockets.asyncio.async_timeout.Timeout object at 0xffffbb2a1db0>, exc_type = <class 'asyncio.exceptions.CancelledError'>
/home/spack/opt/spack/linux-openeuler22-aarch64/gcc-10.3.1/py-websockets-13.1-qa2xe376b2nzrshek3l3hxu4i5kgsj4x/lib/python3.8/site-packages/websockets/asyncio/async_timeout.py:268: TimeoutError ===================================================================================== short test summary info ===================================================================================== FAILED asyncio/test_client.py::ClientTests::test_keepalive_is_enabled - AssertionError: 0 not greater than 0 FAILED asyncio/test_connection.py::ClientConnectionTests::test_close_waits_for_close_frame - AssertionError: TimeoutError('timed out while closing connection') is not None FAILED asyncio/test_connection.py::ClientConnectionTests::test_close_waits_for_connection_closed - AssertionError: TimeoutError('timed out while closing connection') is not None FAILED asyncio/test_connection.py::ServerConnectionTests::test_close_waits_for_close_frame - AssertionError: TimeoutError('timed out while closing connection') is not None FAILED asyncio/test_server.py::ServerTests::test_close_server_keeps_connections_open - asyncio.exceptions.TimeoutError FAILED asyncio/test_server.py::ServerTests::test_close_server_keeps_handlers_running - asyncio.exceptions.TimeoutError