Skip to content

Commit b15615c

Browse files
authored
Merge pull request #568 from xcp-ng/gln/pytest-ipdb-debug-kmyr
Add ipdb with IPython debugger support for pytest
2 parents a6f9728 + c87f96e commit b15615c

4 files changed

Lines changed: 216 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies = [
1616
"pytest>=9.1.1",
1717
"pytest-dependency",
1818
"requests",
19+
"ipdb",
1920
]
2021

2122
[dependency-groups]

pytest.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[pytest]
2-
addopts = -ra --maxfail=1 --ignore=contrib/ --ignore=tests/unit
2+
addopts = -ra --maxfail=1 --ignore=contrib/ --ignore=tests/unit --pdbcls=IPython.terminal.debugger:TerminalPdb
33
markers =
44
# *** Markers that change test behaviour ***
55
default_vm: mark a test with a default VM in case no --vm parameter was given.
@@ -49,4 +49,5 @@ log_date_format = %b %d %H:%M:%S
4949
filterwarnings =
5050
error
5151
ignore::DeprecationWarning
52+
ignore::ResourceWarning
5253
xfail_strict=true

requirements/base.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ pydantic
99
pytest>=9.1.1
1010
pytest-dependency
1111
requests
12+
ipdb

0 commit comments

Comments
 (0)