python312Packages.peft: disable gpu tests on darwin
These depend on hardware present; and will fail if any MPS devices exist. Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
stdenv,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
@@ -69,6 +70,11 @@ buildPythonPackage rec {
|
||||
|
||||
pytestFlagsArray = [ "tests" ];
|
||||
|
||||
# These tests fail when MPS devices are detected
|
||||
disabledTests = lib.optional stdenv.isDarwin [
|
||||
"gpu"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# ValueError: Can't find 'adapter_config.json'
|
||||
"tests/test_config.py"
|
||||
|
||||
Reference in New Issue
Block a user