Commit a1a6f4a1 authored by Martin Weinelt's avatar Martin Weinelt Committed by phanirithvij
Browse files

python310Packages.websockets: disable failing test

parent 30218c53
Loading
Loading
Loading
Loading
+25 −20
Original line number Diff line number Diff line
@@ -24,7 +24,8 @@ buildPythonPackage rec {

  nativeBuildInputs = [ setuptools ];

  patchPhase = ''
  patchPhase =
    ''
      # Disable all tests that need to terminate within a predetermined amount of
      # time. This is nondeterministic.
      sed -i 's/with self.assertCompletesWithin.*:/if True:/' \
@@ -43,6 +44,10 @@ buildPythonPackage rec {
        ; do
        sed -i "s/def $t(/def skip_$t(/" tests/legacy/test_protocol.py
      done
    ''
    + 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
    '';

  nativeCheckInputs = [ unittestCheckHook ];