MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / assert_raises

Function assert_raises

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

Source from the content-addressed store, hash-verified

391
392
393def assert_raises(except_cls, callable_, *args, **kw):
394 return _assert_raises(except_cls, callable_, args, kw, check_context=True)
395
396
397def assert_raises_context_ok(except_cls, callable_, *args, **kw):

Calls 1

_assert_raisesFunction · 0.85