Merge pull request #1052 from The-Compiler/no-std-prefix

Don't hardcode 'std' for captured stdout/stderr.
This commit is contained in:
holger krekel 2015-09-29 09:19:40 +02:00
commit f61f39efdd
2 changed files with 3 additions and 3 deletions

View File

@ -147,8 +147,8 @@ class CaptureManager:
def suspendcapture_item(self, item, when):
out, err = self.suspendcapture()
item.add_report_section(when, "out", out)
item.add_report_section(when, "err", err)
item.add_report_section(when, "stdout", out)
item.add_report_section(when, "stderr", err)
error_capsysfderror = "cannot use capsys and capfd at the same time"

View File

@ -226,7 +226,7 @@ def pytest_runtest_makereport(item, call):
longrepr = item._repr_failure_py(excinfo,
style=item.config.option.tbstyle)
for rwhen, key, content in item._report_sections:
sections.append(("Captured std%s %s" %(key, rwhen), content))
sections.append(("Captured %s %s" %(key, rwhen), content))
return TestReport(item.nodeid, item.location,
keywords, outcome, longrepr, when,
sections, duration)