From 0627d92df248a3263234d0a560c18fc711584c81 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Mon, 17 Jun 2019 20:35:23 +0200 Subject: [PATCH] fix typos in the resolution of #5125 --- doc/en/usage.rst | 2 +- src/_pytest/main.py | 4 ++-- src/_pytest/pytester.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/en/usage.rst b/doc/en/usage.rst index ad7e2cdab..0d464e207 100644 --- a/doc/en/usage.rst +++ b/doc/en/usage.rst @@ -33,7 +33,7 @@ Running ``pytest`` can result in six different exit codes: :Exit code 4: pytest command line usage error :Exit code 5: No tests were collected -They are repressended by the :class:`_pytest.main.ExitCode` enum. +They are represented by the :class:`_pytest.main.ExitCode` enum. Getting help on version, option names, environment variables -------------------------------------------------------------- diff --git a/src/_pytest/main.py b/src/_pytest/main.py index e9b31bca7..118fc784a 100644 --- a/src/_pytest/main.py +++ b/src/_pytest/main.py @@ -35,9 +35,9 @@ class ExitCode(enum.IntEnum): INTERRUPTED = 2 #: an internal error got in the way INTERNAL_ERROR = 3 - #: pytest was missused + #: pytest was misused USAGE_ERROR = 4 - #: pytest couldnt find tests + #: pytest couldn't find tests NO_TESTS_COLLECTED = 5 diff --git a/src/_pytest/pytester.py b/src/_pytest/pytester.py index 1da5bd9ef..6b304ad9f 100644 --- a/src/_pytest/pytester.py +++ b/src/_pytest/pytester.py @@ -711,7 +711,7 @@ class Testdir: return res def genitems(self, colitems): - """Generate all test items from a collection node.src/_pytest/main.py + """Generate all test items from a collection node. This recurses into the collection node and returns a list of all the test items contained within.