Unverified Commit 60bdd7db authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

python313Packages.ruffus: fix tests (#404499)

parents 33150b30 861050f0
Loading
Loading
Loading
Loading
+16 −9
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  fetchFromGitHub,
  hostname,
  pytest,
  pythonAtLeast,
  lib,
  stdenv,
}:
@@ -29,8 +30,14 @@ buildPythonPackage rec {

  # tests very flaky & hang often on darwin
  doCheck = !stdenv.hostPlatform.isDarwin;
  checkPhase =
    # https://docs.python.org/3/whatsnew/3.13.html#re
    lib.optionalString (pythonAtLeast "3.13") ''
      substituteInPlace ruffus/test/test_ruffus_utility.py \
        --replace-fail re.error re.PatternError
    ''
    # test files do indeed need to be executed separately
  checkPhase = ''
    + ''
      pushd ruffus/test
      rm test_with_logger.py  # spawns 500 processes
      for f in test_*.py ; do