[svn r37302] experimentally enable FD-based output capturing per-test

--HG--
branch : trunk
This commit is contained in:
hpk 2007-01-24 22:11:24 +01:00
parent a1b696bdb0
commit 4963148482
2 changed files with 6 additions and 6 deletions

View File

@ -374,11 +374,11 @@ class Module(FSCollector, PyCollectorMixin):
def startcapture(self):
if not self.config.option.nocapture:
assert not hasattr(self, '_capture')
#self._capture = py.io.OutErrCapture()
self._capture = py.io.OutErrCapture()
# XXX integrate this into py.io / refactor
# execnet/py.test capturing mechanisms
from py.__.misc.simplecapture import SimpleOutErrCapture
self._capture = SimpleOutErrCapture()
#from py.__.misc.simplecapture import SimpleOutErrCapture
#self._capture = SimpleOutErrCapture()
def finishcapture(self):
if hasattr(self, '_capture'):

View File

@ -33,9 +33,9 @@ class Item(py.test.collect.Collector):
def startcapture(self):
if not self.config.option.nocapture:
# XXX refactor integrate capturing
#self._capture = py.io.OutErrCapture()
from py.__.misc.simplecapture import SimpleOutErrCapture
self._capture = SimpleOutErrCapture()
self._capture = py.io.OutErrCapture()
#from py.__.misc.simplecapture import SimpleOutErrCapture
#self._capture = SimpleOutErrCapture()
def finishcapture(self):
if hasattr(self, '_capture'):