community/uvicorn: tests fails with py3-websockets 14
patching file tests/supervisors/test_multiprocess.py
2024-11-22 19:20:31,872 gpep517 INFO Building wheel via backend hatchling.build
2024-11-22 19:20:31,905 gpep517 INFO The backend produced .dist/uvicorn-0.32.1-py3-none-any.whl
uvicorn-0.32.1-py3-none-any.whl
=============================================================================== test session starts ================================================================================
platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
rootdir: /home/ncopa/aports/community/uvicorn/src/uvicorn-0.32.1
configfile: pyproject.toml
plugins: mock-3.10.0, cov-5.0.0, xdist-3.6.1, anyio-0.0.0
collected 621 items / 2 errors / 2 deselected / 619 selected
====================================================================================== ERRORS ======================================================================================
________________________________________________________________ ERROR collecting tests/protocols/test_websocket.py ________________________________________________________________
tests/protocols/test_websocket.py:30: in <module>
from uvicorn.protocols.websockets.websockets_impl import WebSocketProtocol
uvicorn/protocols/websockets/websockets_impl.py:10: in <module>
import websockets.legacy.handshake
/usr/lib/python3.12/site-packages/websockets/legacy/__init__.py:6: in <module>
warnings.warn( # deprecated in 14.0 - 2024-11-09
E DeprecationWarning: websockets.legacy is deprecated; see http://websockets.readthedocs.io/en/stable/howto/upgrade.html for upgrade instructions
__________________________________________________________________ ERROR collecting tests/test_auto_detection.py ___________________________________________________________________
tests/test_auto_detection.py:10: in <module>
from uvicorn.protocols.websockets.auto import AutoWebSocketsProtocol
uvicorn/protocols/websockets/auto.py:19: in <module>
from uvicorn.protocols.websockets.websockets_impl import WebSocketProtocol
uvicorn/protocols/websockets/websockets_impl.py:10: in <module>
import websockets.legacy.handshake
/usr/lib/python3.12/site-packages/websockets/legacy/__init__.py:6: in <module>
warnings.warn( # deprecated in 14.0 - 2024-11-09
E DeprecationWarning: websockets.legacy is deprecated; see http://websockets.readthedocs.io/en/stable/howto/upgrade.html for upgrade instructions
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================================================================= 2 deselected, 2 errors in 0.33s ==========================================================================
>>> ERROR: uvicorn: check failed
This was introduced with 3d4448de @fossdd
reported upstream: http://github.com/encode/uvicorn/discussions/2520