From 922853783af475ca7ae8d2352a9573d5940fb4cd Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 28 Nov 2024 11:15:17 +0100 Subject: [PATCH] python312Packages.cleanlab: disabled failing test on python 3.12 --- .../python-modules/cleanlab/default.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/cleanlab/default.nix b/pkgs/development/python-modules/cleanlab/default.nix index 66bcee0c48ba..3b127e61d1d7 100644 --- a/pkgs/development/python-modules/cleanlab/default.nix +++ b/pkgs/development/python-modules/cleanlab/default.nix @@ -13,7 +13,7 @@ tqdm, pandas, - # test dependencies + # tests cleanvision, datasets, fasttext, @@ -27,6 +27,7 @@ torch, torchvision, wget, + pythonAtLeast, }: buildPythonPackage rec { @@ -74,10 +75,17 @@ buildPythonPackage rec { wget ]; - disabledTests = [ - # Requires the datasets we prevent from downloading - "test_create_imagelab" - ]; + disabledTests = + [ + # Requires the datasets we prevent from downloading + "test_create_imagelab" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # AttributeError: 'called_once_with' is not a valid assertion. + # Use a spec for the mock if 'called_once_with' is meant to be an attribute.. + # Did you mean: 'assert_called_once_with'? + "test_custom_issue_manager_not_registered" + ]; disabledTestPaths = [ # Requires internet