Skip to content

Commit

Permalink
fix some bunk formatting in the CollectReport, and reword the descrip…
Browse files Browse the repository at this point in the history
…tion of the 'sections' attribute
  • Loading branch information
wimglenn committed Mar 26, 2021
1 parent 8d21df0 commit 76ab94e
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 76ab94e

Please sign in to comment.