#1478 Add doc and remove print

This commit is contained in:
feuillemorte 2018-02-09 21:36:48 +03:00
parent 71367881ed
commit da5882c2d5
2 changed files with 2 additions and 2 deletions

View File

@ -630,7 +630,6 @@ class TerminalReporter:
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

View File

@ -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