Skip to content

Commit

Permalink
pytest-dev#1478 Add doc and remove print
Browse files Browse the repository at this point in the history
  • Loading branch information
feuillemorte committed Feb 9, 2018
1 parent 7136788 commit da5882c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion _pytest/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,6 @@ def _outrep_summary(self, rep):
if self.config.option.showcapture == 'no':
return
for secname, content in rep.sections:
print(self.config.option.showcapture)
if self.config.option.showcapture != 'both':
if not (self.config.option.showcapture in secname):
continue
Expand Down
3 changes: 2 additions & 1 deletion doc/en/capture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Default stdout/stderr/stdin capturing behaviour

During test execution any output sent to ``stdout`` and ``stderr`` is
captured. If a test or a setup method fails its according captured
output will usually be shown along with the failure traceback.
output will usually be shown along with the failure traceback. (this
behavior can be configured by the ``--show-capture`` command-line option).

In addition, ``stdin`` is set to a "null" object which will
fail on attempts to read from it because it is rarely desired
Expand Down

0 comments on commit da5882c

Please sign in to comment.