Commit d307b913 authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

python313Packages.swh-scanner: disable some tests on Darwin only

parent 0b138686
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitLab,
  setuptools,
@@ -65,6 +66,13 @@ buildPythonPackage rec {
    types-requests
  ];

  disabledTests = lib.optionals (stdenv.hostPlatform.isDarwin) [
    # Failed: Failed to start the server after 5 seconds.
    "test_add_provenance_with_release"
    "test_add_provenance_with_revision"
    "test_scanner_result"
  ];

  disabledTestPaths = [
    # pytestRemoveBytecodePhase fails with: "error (ignored): error: opening directory "/tmp/nix-build-python3.12-swh-scanner-0.8.3.drv-5/build/pytest-of-nixbld/pytest-0/test_randomdir_policy_info_cal0/big-directory/dir/dir/dir/ ......"
    "swh/scanner/tests/test_policy.py"