Skip to content

Commit 20fb3d9

Browse files
authored
python312Packages.cleanlab: disabled failing test on python 3.12 (#359810)
2 parents aef7105 + 9228537 commit 20fb3d9

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

pkgs/development/python-modules/cleanlab/default.nix

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
tqdm,
1414
pandas,
1515

16-
# test dependencies
16+
# tests
1717
cleanvision,
1818
datasets,
1919
fasttext,
@@ -27,6 +27,7 @@
2727
torch,
2828
torchvision,
2929
wget,
30+
pythonAtLeast,
3031
}:
3132

3233
buildPythonPackage rec {
@@ -74,10 +75,17 @@ buildPythonPackage rec {
7475
wget
7576
];
7677

77-
disabledTests = [
78-
# Requires the datasets we prevent from downloading
79-
"test_create_imagelab"
80-
];
78+
disabledTests =
79+
[
80+
# Requires the datasets we prevent from downloading
81+
"test_create_imagelab"
82+
]
83+
++ lib.optionals (pythonAtLeast "3.12") [
84+
# AttributeError: 'called_once_with' is not a valid assertion.
85+
# Use a spec for the mock if 'called_once_with' is meant to be an attribute..
86+
# Did you mean: 'assert_called_once_with'?
87+
"test_custom_issue_manager_not_registered"
88+
];
8189

8290
disabledTestPaths = [
8391
# Requires internet

0 commit comments

Comments
 (0)