Skip to content

Commit

Permalink
python311Packages.nbmake: disable parallelism for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gepbird committed Jan 1, 2025
1 parent b69e95c commit f41c1a5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pkgs/development/python-modules/nbmake/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
pygments,

# tests
pytest-xdist,
pytestCheckHook,
typing-extensions,
}:
Expand Down Expand Up @@ -45,12 +44,7 @@ buildPythonPackage rec {

pythonImportsCheck = [ "nbmake" ];

# tests are prone to race conditions under high parallelism
# https://github.com/treebeardtech/nbmake/issues/129
pytestFlagsArray = [ "--maxprocesses=4" ];

nativeCheckInputs = [
pytest-xdist
pytestCheckHook
typing-extensions
];
Expand All @@ -59,6 +53,13 @@ buildPythonPackage rec {
export HOME=$(mktemp -d)
'';

disabledTests = [
# depends on pytest-xdist that is not added, as
# tests are prone to race conditions under parallelism, they sometimes hang indefinitely
# https://github.com/treebeardtech/nbmake/issues/129
"test_when_parallel_passing_nbs_then_ok"
];

__darwinAllowLocalNetworking = true;

meta = {
Expand Down

0 comments on commit f41c1a5

Please sign in to comment.