From bf9b59b3c8571b26f65159ed3fec831eae434561 Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Sun, 27 Dec 2020 09:55:21 -0500 Subject: [PATCH] Add missing space in '--version' help message --- src/_pytest/helpconfig.py | 2 +- testing/test_helpconfig.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/_pytest/helpconfig.py b/src/_pytest/helpconfig.py index 4384d07b2..b9360cecf 100644 --- a/src/_pytest/helpconfig.py +++ b/src/_pytest/helpconfig.py @@ -51,7 +51,7 @@ def pytest_addoption(parser: Parser) -> None: action="count", default=0, dest="version", - help="display pytest version and information about plugins." + help="display pytest version and information about plugins. " "When given twice, also display information about plugins.", ) group._addoption( diff --git a/testing/test_helpconfig.py b/testing/test_helpconfig.py index 9a433b1b1..571a4783e 100644 --- a/testing/test_helpconfig.py +++ b/testing/test_helpconfig.py @@ -28,6 +28,9 @@ def test_help(pytester: Pytester) -> None: For example: -m 'mark1 and not mark2'. reporting: --durations=N * + -V, --version display pytest version and information about plugins. + When given twice, also display information about + plugins. *setup.cfg* *minversion* *to see*markers*pytest --markers*