def try_call(method):
        status = 'OK'
        try:
            method()
        except Exception as e:
            msg = traceback.format_exc()
            if isinstance(e, SkipTest):
                status = 'SKIP'
                sys.stderr.write(str(e))
            else:
                status = 'FAIL'
                sys.stderr.write(msg)
        except:
            msg = traceback.format_exc()
            status = 'FAIL'
            sys.stderr.write(msg)

        sys.stderr.flush()

        return status
Calls the given method, captures stdout and stderr,
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.test/src/openmdao/test/mpiunittest.py/try_call