MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _assert_raises

Function _assert_raises

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

Source from the content-addressed store, hash-verified

438
439
440def _assert_raises(
441 except_cls, callable_, args, kwargs, msg=None, check_context=False
442):
443 with _expect_raises(except_cls, msg, check_context) as ec:
444 callable_(*args, **kwargs)
445 return ec.error
446
447
448class _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