python3Packages.pytest-xdist: change pytestFlagsArray in preCheck hook (#354791)

This commit is contained in:
Emily
2024-11-12 20:38:45 +00:00
committed by GitHub
@@ -45,10 +45,10 @@ buildPythonPackage rec {
setproctitle = [ setproctitle ];
};
pytestFlagsArray = [
# pytest can already use xdist at this point
"--numprocesses=$NIX_BUILD_CORES"
];
# pytest can already use xdist at this point
preCheck = ''
appendToVar pytestFlagsArray "--numprocesses=$NIX_BUILD_CORES"
'';
# access file system
disabledTests = [