adding a 5 LOC plugin for capturing and ignoring the output of test function calls

--HG--
branch : 1.0.x
This commit is contained in:
holger krekel 2009-08-11 19:02:32 +02:00
parent 37976be529
commit f0181c35a5
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
import py
def pytest_runtest_call(item, __multicall__):
cap = py.io.StdCapture()
try:
return __multicall__.execute()
finally:
outerr = cap.reset()