Skip to content

Commit 0821c5c

Browse files
authored
Merge pull request #7349 from tbm/doc
2 parents c76077c + 6857217 commit 0821c5c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

doc/en/assert.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ and if you need to have access to the actual exception info you may use:
9898
f()
9999
assert "maximum recursion" in str(excinfo.value)
100100
101-
``excinfo`` is a ``ExceptionInfo`` instance, which is a wrapper around
101+
``excinfo`` is an ``ExceptionInfo`` instance, which is a wrapper around
102102
the actual exception raised. The main attributes of interest are
103103
``.type``, ``.value`` and ``.traceback``.
104104

doc/en/fixture.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ In the failure traceback we see that the test function was called with a
179179
function. The test function fails on our deliberate ``assert 0``. Here is
180180
the exact protocol used by ``pytest`` to call the test function this way:
181181

182-
1. pytest :ref:`finds <test discovery>` the ``test_ehlo`` because
182+
1. pytest :ref:`finds <test discovery>` the test ``test_ehlo`` because
183183
of the ``test_`` prefix. The test function needs a function argument
184184
named ``smtp_connection``. A matching fixture function is discovered by
185185
looking for a fixture-marked function named ``smtp_connection``.
@@ -859,7 +859,7 @@ be used with ``-k`` to select specific cases to run, and they will
859859
also identify the specific case when one is failing. Running pytest
860860
with ``--collect-only`` will show the generated IDs.
861861

862-
Numbers, strings, booleans and None will have their usual string
862+
Numbers, strings, booleans and ``None`` will have their usual string
863863
representation used in the test ID. For other objects, pytest will
864864
make a string based on the argument name. It is possible to customise
865865
the string used in a test ID for a certain fixture value by using the
@@ -898,7 +898,7 @@ the string used in a test ID for a certain fixture value by using the
898898
The above shows how ``ids`` can be either a list of strings to use or
899899
a function which will be called with the fixture value and then
900900
has to return a string to use. In the latter case if the function
901-
return ``None`` then pytest's auto-generated ID will be used.
901+
returns ``None`` then pytest's auto-generated ID will be used.
902902

903903
Running the above tests results in the following test IDs being used:
904904

doc/en/parametrize.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Let's run this:
133133
======================= 2 passed, 1 xfailed in 0.12s =======================
134134
135135
The one parameter set which caused a failure previously now
136-
shows up as an "xfailed (expected to fail)" test.
136+
shows up as an "xfailed" (expected to fail) test.
137137

138138
In case the values provided to ``parametrize`` result in an empty list - for
139139
example, if they're dynamically generated by some function - the behaviour of

0 commit comments

Comments
 (0)