python3Packages.dask: fix tests

Tests cannot be ran concurrently
This commit is contained in:
Jonathan Ringer 2020-11-30 18:02:17 -08:00 committed by Frederik Rietdijk
parent 9cb62449f6
commit c68fdc1fbe

View file

@ -11,7 +11,6 @@
, dill
, pandas
, partd
, pytest_xdist
}:
buildPythonPackage rec {
@ -29,7 +28,6 @@ buildPythonPackage rec {
checkInputs = [
pytestCheckHook
pytest_xdist # takes >10mins to run single-threaded
];
dontUseSetuptoolsCheck = true;
@ -54,12 +52,7 @@ buildPythonPackage rec {
--replace "cmdclass=versioneer.get_cmdclass()," ""
'';
# dask test suite with consistently fail when using high core counts
preCheck = ''
NIX_BUILD_CORES=$((NIX_BUILD_CORES > 8 ? 8 : NIX_BUILD_CORES))
'';
pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
#pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
disabledTests = [
"test_argwhere_str"