test_ok1/contrib/pytest_ignoreout.py

9 lines
177 B
Python

import py
def pytest_runtest_call(item, __multicall__):
cap = py.io.StdCapture()
try:
return __multicall__.execute()
finally:
outerr = cap.reset()