We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 483cf8a commit 1020d47Copy full SHA for 1020d47
src/_pytest/config/argparsing.py
@@ -394,6 +394,8 @@ def __init__(
394
395
def error(self, message: str) -> NoReturn:
396
"""Transform argparse error message into UsageError."""
397
+ # TODO(py313): Replace with `exit_on_error=False`. Note that while it
398
+ # was added in Python 3.9, it was broken until 3.13 (cpython#121018).
399
msg = f"{self.prog}: error: {message}"
400
if self.extra_info:
401
msg += "\n" + "\n".join(
0 commit comments