From 55f62508e975d2603a7f5cd8b144972ef8e10345 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 14 Sep 2024 17:39:57 +0200 Subject: [PATCH] python312Packages.pylance: skip failing tests on darwin --- pkgs/development/python-modules/pylance/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/python-modules/pylance/default.nix b/pkgs/development/python-modules/pylance/default.nix index 4a05d6c40eed..9da8ad14dfab 100644 --- a/pkgs/development/python-modules/pylance/default.nix +++ b/pkgs/development/python-modules/pylance/default.nix @@ -100,6 +100,17 @@ buildPythonPackage rec { cd python/python/tests ''; + disabledTests = lib.optionals stdenv.isDarwin [ + # AttributeError: module 'torch.distributed' has no attribute 'is_initialized' + "test_convert_int_tensors" + "test_ground_truth" + "test_index_cast_centroids" + "test_index_with_no_centroid_movement" + "test_iter_filter" + "test_iter_over_dataset_fixed_shape_tensor" + "test_iter_over_dataset_fixed_size_lists" + ]; + passthru.updateScript = nix-update-script { extraArgs = [ "--generate-lockfile"