diff --git a/pkgs/development/python-modules/debugpy/default.nix b/pkgs/development/python-modules/debugpy/default.nix index 9b8f9db6314f..d7606c49001b 100644 --- a/pkgs/development/python-modules/debugpy/default.nix +++ b/pkgs/development/python-modules/debugpy/default.nix @@ -136,6 +136,12 @@ buildPythonPackage rec { "test_systemexit" ]; + disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ + # ConnectionResetError: [Errno 54] Connection reset by peer + "tests/debugpy/test_breakpoints.py::test_error_in_condition[program-attach_connect(cli)-]" + "tests/debugpy/test_breakpoints.py::test_error_in_condition[program-attach_connect(cli)-NameError]" + ]; + # Fixes hanging tests on Darwin __darwinAllowLocalNetworking = true;