From c258b5dc5be72caebb2a8a6689fd0b7bf55bb272 Mon Sep 17 00:00:00 2001 From: ygor Date: Mon, 14 Oct 2024 14:00:53 -0300 Subject: [PATCH] update readme based on #4008 --- README.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index dbfff79..e7f94cf 100644 --- a/README.rst +++ b/README.rst @@ -196,11 +196,11 @@ instead of ``pdb``. (It does not depend on ``ipdb`` anymore). pytest +++++++ pytest_ supports a ``--pdb`` option which can run ``ipdb`` / -``IPython.terminal.debugger:Pdb`` on ``Exception`` and ``breakpoint()``: +``IPython.terminal.debugger:TerminalPdb`` on ``Exception`` and ``breakpoint()``: .. code:: bash - pytest --pdb --pdbcls=IPython.terminal.debugger:Pdb -v ./test_example.py + pytest --pdb --pdbcls=IPython.terminal.debugger:TerminalPdb -v ./test_example.py You don't need to specify ``--pdbcls`` for every ``pytest`` invocation if you add ``addopts`` to ``pytest.ini`` or ``pyproject.toml``. @@ -210,14 +210,14 @@ if you add ``addopts`` to ``pytest.ini`` or ``pyproject.toml``. .. code:: bash [tool.pytest.ini_options] - addopts = "--pdbcls=IPython.terminal.debugger:Pdb" + addopts = "--pdbcls=IPython.terminal.debugger:TerminalPdb" ``pyproject.toml``: .. code:: yml [tool.pytest.ini_options] - addopts = "--pdbcls=IPython.terminal.debugger:Pdb" + addopts = "--pdbcls=IPython.terminal.debugger:TerminalPdb" .. _pytest: https://pypi.python.org/pypi/pytest