python3Packages.debugpy: fix test failures

This commit is contained in:
Austin Butler
2023-03-17 22:14:43 -07:00
parent 64b8d10a48
commit 8403c0d5e2
@@ -3,6 +3,7 @@
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, fetchpatch
, substituteAll
, gdb
, django
@@ -37,6 +38,12 @@ buildPythonPackage rec {
inherit version;
})
# https://github.com/microsoft/debugpy/issues/1230
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/microsoft/debugpy/pull/1232.patch";
sha256 = "sha256-m5p+xYiJ4w4GcaFIaPmlnErp/7WLwcvJmaCqa2SeSxU=";
})
# Fix importing debugpy in:
# - test_nodebug[module-launch(externalTerminal)]
# - test_nodebug[module-launch(integratedTerminal)]
@@ -100,10 +107,14 @@ buildPythonPackage rec {
pytestFlagsArray = [
"--timeout=0"
];
# Fixes hanging tests on Darwin
__darwinAllowLocalNetworking = true;
disabledTests = [
# https://github.com/microsoft/debugpy/issues/1241
"test_flask_breakpoint_multiproc"
];
pythonImportsCheck = [
"debugpy"
];