Skip to content

Commit 6f1d358

Browse files
committed
Fix some ReST indentation issues in docstrings
1 parent 3ad315b commit 6f1d358

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

src/_pytest/mark/structures.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -193,17 +193,18 @@ def test_function():
193193
pass
194194
195195
When a MarkDecorator instance is called it does the following:
196-
1. If called with a single class as its only positional argument and no
197-
additional keyword arguments, it attaches itself to the class so it
198-
gets applied automatically to all test cases found in that class.
199-
2. If called with a single function as its only positional argument and
200-
no additional keyword arguments, it attaches a MarkInfo object to the
201-
function, containing all the arguments already stored internally in
202-
the MarkDecorator.
203-
3. When called in any other case, it performs a 'fake construction' call,
204-
i.e. it returns a new MarkDecorator instance with the original
205-
MarkDecorator's content updated with the arguments passed to this
206-
call.
196+
197+
1. If called with a single class as its only positional argument and no
198+
additional keyword arguments, it attaches itself to the class so it
199+
gets applied automatically to all test cases found in that class.
200+
2. If called with a single function as its only positional argument and
201+
no additional keyword arguments, it attaches a MarkInfo object to the
202+
function, containing all the arguments already stored internally in
203+
the MarkDecorator.
204+
3. When called in any other case, it performs a 'fake construction' call,
205+
i.e. it returns a new MarkDecorator instance with the original
206+
MarkDecorator's content updated with the arguments passed to this
207+
call.
207208
208209
Note: The rules above prevent MarkDecorator objects from storing only a
209210
single function or class reference as their positional argument with no

src/_pytest/python_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ def raises(expected_exception, *args, **kwargs):
542542
string that may contain `special characters`__, the pattern can
543543
first be escaped with ``re.escape``.
544544
545-
__ https://docs.python.org/3/library/re.html#regular-expression-syntax
545+
__ https://docs.python.org/3/library/re.html#regular-expression-syntax
546546
547547
:kwparam message: **(deprecated since 4.1)** if specified, provides a custom failure message
548548
if the exception is not raised. See :ref:`the deprecation docs <raises message deprecated>` for a workaround.

0 commit comments

Comments
 (0)