diff options
author | Doron Behar <doron.behar@gmail.com> | 2023-08-01 14:17:19 +0300 |
---|---|---|
committer | Doron Behar <doron.behar@gmail.com> | 2023-08-01 17:29:50 +0300 |
commit | 01e53f70657cc8948c7701b5471e62be1282b6a3 (patch) | |
tree | 2a178828989f3f35ce7d7bb8557dc1bec0cdcd5d /pkgs/development/python-modules/scipy | |
parent | 2abdb71b9969eec4101f3eeded08ccf673805380 (diff) |
python3.pkgs.scipy: really exit when tests fail.
Diffstat (limited to 'pkgs/development/python-modules/scipy')
-rw-r--r-- | pkgs/development/python-modules/scipy/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/scipy/default.nix b/pkgs/development/python-modules/scipy/default.nix index 8d41b5504e042..cbabcbd72f350 100644 --- a/pkgs/development/python-modules/scipy/default.nix +++ b/pkgs/development/python-modules/scipy/default.nix @@ -142,7 +142,7 @@ in buildPythonPackage { runHook preCheck pushd "$out" export OMP_NUM_THREADS=$(( $NIX_BUILD_CORES / 4 )) - ${python.interpreter} -c "import scipy; scipy.test('fast', verbose=10, parallel=$NIX_BUILD_CORES)" + ${python.interpreter} -c "import scipy, sys; sys.exit(scipy.test('fast', verbose=10, parallel=$NIX_BUILD_CORES) != True)" popd runHook postCheck ''; |