python313Packages.accelerate: disable unsupported tests

and finally migrate to pytest 8.
This commit is contained in:
Martin Weinelt
2025-01-27 10:58:16 +01:00
parent 06252e5ec4
commit 02eb91ebd4
@@ -23,7 +23,7 @@
# tests
evaluate,
parameterized,
pytest7CheckHook,
pytestCheckHook,
transformers,
config,
cudatoolkit,
@@ -58,7 +58,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
evaluate
parameterized
pytest7CheckHook
pytestCheckHook
transformers
];
preCheck =
@@ -92,10 +92,11 @@ buildPythonPackage rec {
# set the environment variable, CC, which conflicts with standard environment
"test_patch_environment_key_exists"
]
++ lib.optionals (pythonAtLeast "3.12") [
# RuntimeError: Dynamo is not supported on Python 3.12+
++ lib.optionals (pythonAtLeast "3.13") [
# RuntimeError: Dynamo is not supported on Python 3.13+
"test_can_unwrap_distributed_compiled_model_keep_torch_compile"
"test_can_unwrap_distributed_compiled_model_remove_torch_compile"
"test_convert_to_fp32"
"test_dynamo_extract_model"
"test_send_to_device_compiles"
]
++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [