From 6649f2392cd086536ef7c68151e5821010f2c07a Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 27 Feb 2024 08:29:18 +0100 Subject: [PATCH] python311Packages.tensordict: disable failing test on darwin --- pkgs/development/python-modules/tensordict/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/tensordict/default.nix b/pkgs/development/python-modules/tensordict/default.nix index 1c5bad17e8a0..384aee427791 100644 --- a/pkgs/development/python-modules/tensordict/default.nix +++ b/pkgs/development/python-modules/tensordict/default.nix @@ -10,6 +10,7 @@ , numpy , h5py , pytestCheckHook +, stdenv }: buildPythonPackage rec { @@ -53,6 +54,12 @@ buildPythonPackage rec { pytestCheckHook ]; + + # ModuleNotFoundError: No module named 'torch._C._distributed_c10d'; 'torch._C' is not a package + disabledTestPaths = lib.optionals stdenv.isDarwin [ + "test/test_distributed.py" + ]; + meta = with lib; { description = "A pytorch dedicated tensor container"; changelog = "https://github.com/pytorch/tensordict/releases/tag/v${version}";