test_ok1/contrib/pytest_ignoreout.py

9 lines
177 B
Python
Raw Normal View History

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