Skip to content

Commit

Permalink
pythonPackages.nose-randomly: fix tests on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
austinbutler committed Dec 6, 2021
1 parent 05884b2 commit 838310b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkgs/development/python-modules/nose-randomly/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, nose
Expand All @@ -16,9 +17,10 @@ buildPythonPackage rec {

checkInputs = [ numpy nose ];

checkPhase = ''
nosetests
'';
checkPhase = if stdenv.isDarwin then ''
# Work around "OSError: AF_UNIX path too long"
TMPDIR="/tmp" nosetests
'' else "nosetests";

meta = with lib; {
description = "Nose plugin to randomly order tests and control random.seed";
Expand Down

0 comments on commit 838310b

Please sign in to comment.