Skip to content

Commit

Permalink
fix typos in the resolution of #5125 (#5458)
Browse files Browse the repository at this point in the history
fix typos in the resolution of #5125
  • Loading branch information
nicoddemus authored Jun 17, 2019
2 parents b38a4e8 + 0627d92 commit b713460
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/en/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions src/_pytest/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
2 changes: 1 addition & 1 deletion src/_pytest/pytester.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ def getpathnode(self, path):
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.
Expand Down

0 comments on commit b713460

Please sign in to comment.