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:
parent
37976be529
commit
f0181c35a5
|
@ -0,0 +1,8 @@
|
|||
import py
|
||||
|
||||
def pytest_runtest_call(item, __multicall__):
|
||||
cap = py.io.StdCapture()
|
||||
try:
|
||||
return __multicall__.execute()
|
||||
finally:
|
||||
outerr = cap.reset()
|
Loading…
Reference in New Issue