From 5dd7fe91c54236d3d60d0aa01af0d626259a2fd7 Mon Sep 17 00:00:00 2001 From: rchiodo Date: Mon, 8 Jul 2024 17:40:24 +0000 Subject: [PATCH] Update test requirements --- CONTRIBUTING.md | 2 +- src/debugpy/common/util.py | 2 +- tests/requirements.txt | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9d2bead8..f3f4b09a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -76,7 +76,7 @@ On Linux or macOS: ### Running tests without tox -While tox is the recommended way to run the test suite, pytest can also be invoked directly from the root of the repository. This requires packages in tests/test_requirements.txt to be installed first. +While tox is the recommended way to run the test suite, pytest can also be invoked directly from the root (src/debugpy) of the repository. This requires packages in tests/requirements.txt to be installed first. ## Using modified debugpy in Visual Studio Code To test integration between debugpy and Visual Studio Code, the latter can be directed to use a custom version of debugpy in lieu of the one bundled with the Python extension. This is done by specifying `"debugAdapterPath"` in `launch.json` - it must point at the root directory of the *package*, which is `src/debugpy` inside the repository: diff --git a/src/debugpy/common/util.py b/src/debugpy/common/util.py index 680c9ed6..219c8526 100644 --- a/src/debugpy/common/util.py +++ b/src/debugpy/common/util.py @@ -175,5 +175,5 @@ class WaitForTimeout(): def __call__(self): if self._timeout is not None: time.sleep(self._timeout) - self.timed_out = True + self.timed_out = True self._func() diff --git a/tests/requirements.txt b/tests/requirements.txt index 12784fe3..a55e80aa 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -9,6 +9,7 @@ pytest-timeout importlib_metadata psutil +untangle ## Used in Python code that is run/debugged by the tests: