Skip to content

Commit 1020d47

Browse files
committed
config: add comment about future possibility
1 parent 483cf8a commit 1020d47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/_pytest/config/argparsing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ def __init__(
394394

395395
def error(self, message: str) -> NoReturn:
396396
"""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).
397399
msg = f"{self.prog}: error: {message}"
398400
if self.extra_info:
399401
msg += "\n" + "\n".join(

0 commit comments

Comments
 (0)