From 0a3b14980c5e9fa1fc116c6d8bfb249ed3e4d6c3 Mon Sep 17 00:00:00 2001 From: teutat3s <10206665+teutat3s@users.noreply.github.com> Date: Tue, 12 Nov 2024 13:19:22 +0100 Subject: [PATCH] python310Packages.websockets: disable failing test a1a6f4a1fbc38db6658b5ce581b5d0349f673f93 already partially fixed this, but missed the test in tests/asyncio/test_client.py --- pkgs/development/python-modules/websockets/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/websockets/default.nix b/pkgs/development/python-modules/websockets/default.nix index 658d69ea942d..063fa1a43e75 100644 --- a/pkgs/development/python-modules/websockets/default.nix +++ b/pkgs/development/python-modules/websockets/default.nix @@ -48,6 +48,7 @@ buildPythonPackage rec { + lib.optionalString (pythonOlder "3.11") '' # Our Python 3.10 and older raise SSLError instead of SSLCertVerificationError sed -i "s/def test_reject_invalid_server_certificate(/def skip_test_reject_invalid_server_certificate(/" tests/sync/test_client.py + sed -i "s/def test_reject_invalid_server_certificate(/def skip_test_reject_invalid_server_certificate(/" tests/asyncio/test_client.py ''; nativeCheckInputs = [ unittestCheckHook ];