From 822624c252cfc7f0a2619b272901ec5c5fdbb462 Mon Sep 17 00:00:00 2001 From: James Gerity Date: Tue, 11 May 2021 05:04:50 -0400 Subject: [PATCH] Update help text for `--pdbcls` to match behavior (closes #8655) (#8656) * Clarify help text for --pdbcls * Add changelog entry for --pdbcls --- changelog/8655.doc.rst | 1 + src/_pytest/debugging.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog/8655.doc.rst diff --git a/changelog/8655.doc.rst b/changelog/8655.doc.rst new file mode 100644 index 000000000..65051a743 --- /dev/null +++ b/changelog/8655.doc.rst @@ -0,0 +1 @@ +Help text for ``--pdbcls`` more accurately reflects the option's behavior. diff --git a/src/_pytest/debugging.py b/src/_pytest/debugging.py index d3a5c6173..cb9dd8660 100644 --- a/src/_pytest/debugging.py +++ b/src/_pytest/debugging.py @@ -53,7 +53,7 @@ def pytest_addoption(parser: Parser) -> None: dest="usepdb_cls", metavar="modulename:classname", type=_validate_usepdb_cls, - help="start a custom interactive Python debugger on errors. " + help="specify a custom interactive Python debugger for use with --pdb." "For example: --pdbcls=IPython.terminal.debugger:TerminalPdb", ) group._addoption(