File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -171,11 +171,11 @@ Third-party support
171171pytest
172172+++++++
173173pytest _ supports a ``--pdb `` option which can run ``ipdb `` /
174- ``IPython.terminal.debugger:Pdb `` on ``Exception `` and ``breakpoint() ``:
174+ ``IPython.terminal.debugger:TerminalPdb `` on ``Exception `` and ``breakpoint() ``:
175175
176176.. code :: bash
177177
178- pytest --pdb --pdbcls=IPython.terminal.debugger:Pdb -v ./test_example.py
178+ pytest --pdb --pdbcls=IPython.terminal.debugger:TerminalPdb -v ./test_example.py
179179
180180 You don't need to specify ``--pdbcls `` for every ``pytest `` invocation
181181if you add ``addopts `` to ``pytest.ini `` or ``pyproject.toml ``.
@@ -185,14 +185,14 @@ if you add ``addopts`` to ``pytest.ini`` or ``pyproject.toml``.
185185.. code :: bash
186186
187187 [tool.pytest.ini_options]
188- addopts = " --pdbcls=IPython.terminal.debugger:Pdb "
188+ addopts = " --pdbcls=IPython.terminal.debugger:TerminalPdb "
189189
190190 ``pyproject.toml ``:
191191
192192.. code :: yml
193193
194194 [tool.pytest.ini_options]
195- addopts = "--pdbcls=IPython.terminal.debugger:Pdb "
195+ addopts = "--pdbcls=IPython.terminal.debugger:TerminalPdb "
196196
197197
198198 .. _pytest : https://pypi.python.org/pypi/pytest
You can’t perform that action at this time.
0 commit comments