diff --git a/contrib/pytest_ignoreout.py b/contrib/pytest_ignoreout.py new file mode 100644 index 000000000..b065593aa --- /dev/null +++ b/contrib/pytest_ignoreout.py @@ -0,0 +1,8 @@ +import py + +def pytest_runtest_call(item, __multicall__): + cap = py.io.StdCapture() + try: + return __multicall__.execute() + finally: + outerr = cap.reset()