Skip to content

Commit

Permalink
Merge pull request #8493 from pytest-dev/docs-fix
Browse files Browse the repository at this point in the history
tweak documentation of report's sections attribute
  • Loading branch information
nicoddemus committed Mar 26, 2021
2 parents d9f4ced + 76ab94e commit 878a51e
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/_pytest/reports.py
Expand Up @@ -281,10 +281,10 @@ def __init__(
#: defined properties of the test.
self.user_properties = list(user_properties or [])

#: List of pairs ``(str, str)`` of extra information which needs to
#: marshallable. Used by pytest to add captured text
#: from ``stdout`` and ``stderr``, but may be used by other plugins
#: to add arbitrary information to reports.
#: Tuples of str ``(heading, content)`` with extra information
#: for the test report. Used by pytest to add text captured
#: from ``stdout``, ``stderr``, and intercepted logging events. May
#: be used by other plugins to add arbitrary information to reports.
self.sections = list(sections)

#: Time it took to run just the test.
Expand Down Expand Up @@ -381,11 +381,10 @@ def __init__(
#: The collected items and collection nodes.
self.result = result or []

#: List of pairs ``(str, str)`` of extra information which needs to
#: marshallable.
# Used by pytest to add captured text : from ``stdout`` and ``stderr``,
# but may be used by other plugins : to add arbitrary information to
# reports.
#: Tuples of str ``(heading, content)`` with extra information
#: for the test report. Used by pytest to add text captured
#: from ``stdout``, ``stderr``, and intercepted logging events. May
#: be used by other plugins to add arbitrary information to reports.
self.sections = list(sections)

self.__dict__.update(extra)
Expand Down

0 comments on commit 878a51e

Please sign in to comment.