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

Function assert_raises

lib/sqlalchemy/testing/assertions.py:387–388  ·  view source on GitHub ↗
(except_cls, callable_, *args, **kw)

Source from the content-addressed store, hash-verified

385
386
387def assert_raises(except_cls, callable_, *args, **kw):
388 return _assert_raises(except_cls, callable_, args, kw, check_context=True)
389
390
391def assert_raises_context_ok(except_cls, callable_, *args, **kw):

Calls 1

_assert_raisesFunction · 0.85