MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _assert_raises

Function _assert_raises

lib/sqlalchemy/testing/assertions.py:446–451  ·  view source on GitHub ↗
(
    except_cls, callable_, args, kwargs, msg=None, check_context=False
)

Source from the content-addressed store, hash-verified

444
445
446def _assert_raises(
447 except_cls, callable_, args, kwargs, msg=None, check_context=False
448):
449 with _expect_raises(except_cls, msg, check_context) as ec:
450 callable_(*args, **kwargs)
451 return ec.error
452
453
454class _ErrorContainer:

Callers 4

assert_raisesFunction · 0.85
assert_raises_context_okFunction · 0.85
assert_raises_messageFunction · 0.85

Calls 1

_expect_raisesFunction · 0.85

Tested by

no test coverage detected