Unverified Commit 6721e98d authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python3Packages.sentence-transformers: disable test that segfaults on Darwin (#422742)

parents 621b3390 2ae3d1aa
Loading
Loading
Loading
Loading
+23 −17
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,

@@ -101,7 +102,8 @@ buildPythonPackage rec {
    "test_trainer_multi_dataset_errors"
  ];

  disabledTestPaths = [
  disabledTestPaths =
    [
      # Tests require network access
      "tests/cross_encoder/test_cross_encoder.py"
      "tests/cross_encoder/test_train_stsb.py"
@@ -117,6 +119,10 @@ buildPythonPackage rec {
      "tests/test_pretrained_stsb.py"
      "tests/test_sentence_transformer.py"
      "tests/test_train_stsb.py"
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      # Segfault
      "tests/test_sparse_tensor.py"
    ];

  # Sentence-transformer needs a writable hf_home cache