Skip to content

Commit 530b005

Browse files
committed
Improve TestReport.sections docs a bit
Related to #1790
1 parent ff296fd commit 530b005

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

_pytest/runner.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,10 @@ def __init__(self, nodeid, location, keywords, outcome,
306306
#: one of 'setup', 'call', 'teardown' to indicate runtest phase.
307307
self.when = when
308308

309-
#: list of (secname, data) extra information which needs to
310-
#: marshallable
309+
#: list of pairs ``(str, str)`` of extra information which needs to
310+
#: marshallable. Used by pytest to add captured text
311+
#: from ``stdout`` and ``stderr``, but may be used by other plugins
312+
#: to add arbitrary information to reports.
311313
self.sections = list(sections)
312314

313315
#: time it took to run just the test

0 commit comments

Comments
 (0)