aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2014-09-04 10:33:40 +0200
committerArmin Rigo <arigo@tunes.org>2014-09-04 10:33:40 +0200
commit243cdc64b9067e55f011bfa5c5429a67c756443e (patch)
tree916fa88d08f579acbe41067f280f8507d088daba /_pytest
parentOups, it seems the buildbots use too much memory with this setting? (diff)
downloadpypy-243cdc64b9067e55f011bfa5c5429a67c756443e.tar.gz
pypy-243cdc64b9067e55f011bfa5c5429a67c756443e.tar.bz2
pypy-243cdc64b9067e55f011bfa5c5429a67c756443e.zip
Trying to output the stdout/stderr but only in failure cases
Diffstat (limited to '_pytest')
-rw-r--r--_pytest/resultlog.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/_pytest/resultlog.py b/_pytest/resultlog.py
index 8cf58a1b67..6578cb6989 100644
--- a/_pytest/resultlog.py
+++ b/_pytest/resultlog.py
@@ -57,7 +57,8 @@ class ResultLog(object):
_safeprint("%s %s" % (lettercode, testpath), file=self.logfile)
for line in longrepr.splitlines():
_safeprint(" %s" % line, file=self.logfile)
- if 0 and sections is not None: # XXX XXX USES TOO MUCH MEMORY??
+ if sections is not None and (
+ lettercode in ('E', 'F')): # to limit the size of logs
for title, content in sections:
_safeprint(" ---------- %s ----------" % (title,),
file=self.logfile)