Merge pull request #221772 from austinbutler/fix-debugpy-test-fails
python3Packages.debugpy: fix test failures
This commit is contained in:
@@ -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"
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user