A feature-rich command-line audio/video downloader
[rh:websockets] Support websockets 14.0+ (#11616)
coletdjnzc7316373c0a8
diff --git a/pyproject.toml b/pyproject.tomlindex 92d399e319..97ea4375fc 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -52,7 +52,7 @@ default = ["pycryptodomex","requests>=2.32.2,<3","urllib3>=1.26.17,<3",- "websockets>=13.0,<14",+ "websockets>=13.0",]curl-cffi = ["curl-cffi==0.5.10; os_name=='nt' and implementation_name=='cpython'",diff --git a/test/test_socks.py b/test/test_socks.pyindex 68af19d0ca..f601fc8a5e 100644--- a/test/test_socks.py+++ b/test/test_socks.py@@ -216,7 +216,9 @@ class SocksWebSocketTestRequestHandler(SocksTestRequestHandler):protocol = websockets.ServerProtocol()connection = websockets.sync.server.ServerConnection(socket=self.request, protocol=protocol, close_timeout=0)connection.handshake()- connection.send(json.dumps(self.socks_info))+ for message in connection:+ if message == 'socks_info':+ connection.send(json.dumps(self.socks_info))connection.close()