Skip to content

Commit ba20096

Browse files
python3Packages.debugpy: use retry plugin
Otherwise the tests complete with warnings about an unknown decorator.
1 parent 6322dd1 commit ba20096

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pkgs/development/python-modules/debugpy/default.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
pytestCheckHook,
1212
pytest-xdist,
1313
pytest-timeout,
14+
pytest-retry,
1415
importlib-metadata,
1516
psutil,
1617
untangle,
@@ -99,6 +100,7 @@ buildPythonPackage rec {
99100
pytestCheckHook
100101
pytest-xdist
101102
pytest-timeout
103+
pytest-retry
102104

103105
## Used by test helpers:
104106
importlib-metadata
@@ -129,7 +131,12 @@ buildPythonPackage rec {
129131
'';
130132

131133
# Override default arguments in pytest.ini
132-
pytestFlagsArray = [ "--timeout=0" ];
134+
pytestFlags = [ "--timeout=0" ];
135+
136+
disabledTests = [
137+
# hanging test (flaky)
138+
"test_systemexit"
139+
];
133140

134141
# Fixes hanging tests on Darwin
135142
__darwinAllowLocalNetworking = true;

0 commit comments

Comments
 (0)