Skip to content

Commit 4d01740

Browse files
authored
Merge pull request #5887 from asottile/fix_attributes_docs_pytester
Fix attribute docs in _pytest.pytester
2 parents b622768 + 07792c7 commit 4d01740

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/_pytest/pytester.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -351,15 +351,14 @@ class RunResult:
351351
352352
Attributes:
353353
354-
:ret: the return value
355-
:outlines: list of lines captured from stdout
356-
:errlines: list of lines captures from stderr
357-
:stdout: :py:class:`LineMatcher` of stdout, use ``stdout.str()`` to
354+
:ivar ret: the return value
355+
:ivar outlines: list of lines captured from stdout
356+
:ivar errlines: list of lines captured from stderr
357+
:ivar stdout: :py:class:`LineMatcher` of stdout, use ``stdout.str()`` to
358358
reconstruct stdout or the commonly used ``stdout.fnmatch_lines()``
359359
method
360-
:stderr: :py:class:`LineMatcher` of stderr
361-
:duration: duration in seconds
362-
360+
:ivar stderr: :py:class:`LineMatcher` of stderr
361+
:ivar duration: duration in seconds
363362
"""
364363

365364
def __init__(self, ret, outlines, errlines, duration):
@@ -454,9 +453,9 @@ class Testdir:
454453
455454
Attributes:
456455
457-
:tmpdir: The :py:class:`py.path.local` instance of the temporary directory.
456+
:ivar tmpdir: The :py:class:`py.path.local` instance of the temporary directory.
458457
459-
:plugins: A list of plugins to use with :py:meth:`parseconfig` and
458+
:ivar plugins: A list of plugins to use with :py:meth:`parseconfig` and
460459
:py:meth:`runpytest`. Initially this is an empty list but plugins can
461460
be added to the list. The type of items to add to the list depends on
462461
the method using them so refer to them for details.

0 commit comments

Comments
 (0)