def _assert_raises(except_cls, callable_, args, kwargs, msg=None, check_context=False):
    with _expect_raises(except_cls, msg, check_context) as ec:
        callable_(*args, **kwargs)
    return ec.error
def _assert_raises(except_cls, callable_, args, kwargs, msg=None, check_context=False):
    with _expect_raises(except_cls, msg, check_context) as ec:
        callable_(*args, **kwargs)
    return ec.error