Skip to content

Commit 3ce721a

Browse files
python313Packages.pytorch-pfn-extras: disable failing test on python 3.13 (#390911)
2 parents cc46ba9 + 4094484 commit 3ce721a

File tree

1 file changed

+6
-1
lines changed
  • pkgs/development/python-modules/pytorch-pfn-extras

1 file changed

+6
-1
lines changed

pkgs/development/python-modules/pytorch-pfn-extras/default.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
onnx,
1818
pytestCheckHook,
1919
torchvision,
20+
pythonAtLeast,
2021
}:
2122

2223
buildPythonPackage rec {
@@ -60,7 +61,11 @@ buildPythonPackage rec {
6061
# where 4 = <MagicMock id='140733587469184'>.call_count
6162
"test_lr_scheduler_wait_for_first_optimizer_step"
6263
]
63-
++ lib.optionals (stdenv.hostPlatform.isDarwin) [
64+
++ lib.optionals (pythonAtLeast "3.13") [
65+
# RuntimeError: Dynamo is not supported on Python 3.13+
66+
"test_register"
67+
]
68+
++ lib.optionals stdenv.hostPlatform.isDarwin [
6469
# torch.distributed is not available on darwin
6570
"test_create_distributed_evaluator"
6671
"test_distributed_evaluation"

0 commit comments

Comments
 (0)