Skip to content

Commit

Permalink
python310Packages.trio-websocket: fix/disable tests on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed May 28, 2023
1 parent 1b130c8 commit 658c049
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkgs/development/python-modules/trio-websocket/default.nix
@@ -1,4 +1,5 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, exceptiongroup
Expand Down Expand Up @@ -33,6 +34,19 @@ buildPythonPackage rec {
trustme
];

disabledTests = lib.optionals stdenv.isDarwin [
# Failed: DID NOT RAISE <class 'ValueError'>
"test_finalization_dropped_exception"
# Timing related
"test_client_close_timeout"
"test_cm_exit_with_pending_messages"
"test_server_close_timeout"
"test_server_handler_exit"
"test_server_open_timeout"
];

__darwinAllowLocalNetworking = true;

pythonImportsCheck = [ "trio_websocket" ];

meta = with lib; {
Expand Down

0 comments on commit 658c049

Please sign in to comment.