python.pkgs.joblib: disable tests properly
This commit is contained in:
parent
20fd713669
commit
8796e3b680
@ -6,6 +6,7 @@
|
||||
, numpydoc
|
||||
, isPy3k
|
||||
, stdenv
|
||||
, pytest
|
||||
}:
|
||||
|
||||
|
||||
@ -18,14 +19,10 @@ buildPythonPackage rec {
|
||||
sha256 = "7b8fd56df36d9731a83729395ccb85a3b401f62a96255deb1a77220c00ed4085";
|
||||
};
|
||||
|
||||
checkInputs = [ nose sphinx numpydoc ];
|
||||
checkInputs = [ sphinx numpydoc pytest ];
|
||||
|
||||
# Failing test on Python 3.x and Darwin
|
||||
postPatch = '''' + lib.optionalString (isPy3k || stdenv.isDarwin) ''
|
||||
sed -i -e '70,84d' joblib/test/test_format_stack.py
|
||||
# test_nested_parallel_warnings: ValueError: Non-zero return code: -9.
|
||||
# Not sure why but it's nix-specific. Try removing for new joblib releases.
|
||||
rm joblib/test/test_parallel.py
|
||||
checkPhase = ''
|
||||
py.test -k 'not test_disk_used and not test_nested_parallel_warnings' joblib/test
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user