From 6897052221ccd1df152995b1d9eff8bc08d98865 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Tue, 16 Dec 2025 15:40:32 -0800 Subject: [PATCH] python3Packages.pymoo: disable failing python 3.12 test on Darwin --- pkgs/development/python-modules/pymoo/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/pymoo/default.nix b/pkgs/development/python-modules/pymoo/default.nix index 3fd2265c636c..87d5c6ba0fd1 100644 --- a/pkgs/development/python-modules/pymoo/default.nix +++ b/pkgs/development/python-modules/pymoo/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, @@ -114,10 +115,16 @@ buildPythonPackage rec { # AttributeError: 'ZDT3' object has no attribute 'elementwise' "test_kktpm_correctness" ]; + disabledTestPaths = [ # sensitive to float precision "tests/algorithms/test_no_modfication.py" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # sensitive to float precision + "tests/misc/test_kktpm.py::test_kktpm_correctness[zdt3-params3]" ]; + # Avoid crashing sandboxed build on macOS env.MATPLOTLIBRC = writeText "" '' backend: Agg