python312Packages.debugpy: 1.8.5 -> 1.8.6
[NixPkgs.git] / pkgs / development / python-modules / debugpy / skip-attach-pid-tests.patch
blobcef0a97eb300437fbd0278edecef0f1b5b8a43b2
1 diff --git a/tests/debug/runners.py b/tests/debug/runners.py
2 index dc60d0ae..cf4a06a3 100644
3 --- a/tests/debug/runners.py
4 +++ b/tests/debug/runners.py
5 @@ -163,7 +163,7 @@ def _attach_common_config(session, target, cwd):
6 @_runner
7 @contextlib.contextmanager
8 def attach_pid(session, target, cwd=None, wait=True):
9 - if wait and not sys.platform.startswith("linux"):
10 + if wait:
11 pytest.skip("https://github.com/microsoft/ptvsd/issues/1926")
13 log.info("Attaching {0} to {1} by PID.", session, target)
14 diff --git a/tests/debugpy/test_attach.py b/tests/debugpy/test_attach.py
15 index 017d7f59..63e86328 100644
16 --- a/tests/debugpy/test_attach.py
17 +++ b/tests/debugpy/test_attach.py
18 @@ -151,8 +151,7 @@ def test_reattach(pyfile, target, run):
21 @pytest.mark.parametrize("pid_type", ["int", "str"])
22 -@pytest.mark.skipif(
23 - not sys.platform.startswith("linux"),
24 +@pytest.mark.skip(
25 reason="https://github.com/microsoft/debugpy/issues/311",
27 def test_attach_pid_client(pyfile, target, pid_type):