From 66a853061721381a00b6cbb9482fdb92d47f78aa Mon Sep 17 00:00:00 2001 From: coletdjnz Date: Sat, 18 May 2024 16:24:36 +1200 Subject: [PATCH] Skip HTTP Connect proxy tests for websockets if using PyPy --- test/test_http_proxy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_http_proxy.py b/test/test_http_proxy.py index 409476ad0..8652a2891 100644 --- a/test/test_http_proxy.py +++ b/test/test_http_proxy.py @@ -392,6 +392,9 @@ def test_http_with_idn(self, handler, ctx): ('Websockets', 'ws'), ('Websockets', 'wss') ], indirect=True) +@pytest.mark.skip_handler_if( + 'Websockets', lambda _: platform.python_implementation() == 'PyPy', + 'PyPy sometimes fails with these tests, unknown reason') class TestHTTPConnectProxy: def test_http_connect_no_auth(self, handler, ctx): with ctx.http_server(HTTPConnectProxyHandler) as server_address: