python312Packages.cleanlab: disabled failing test on python 3.12 (#359810)

This commit is contained in:
Yt 2024-11-28 05:24:27 -05:00 committed by GitHub
commit 20fb3d9b9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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