MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / assert_raises_message

Function assert_raises_message

lib/sqlalchemy/testing/assertions.py:401–404  ·  view source on GitHub ↗
(except_cls, msg, callable_, *args, **kwargs)

Source from the content-addressed store, hash-verified

399
400
401def assert_raises_message(except_cls, msg, callable_, *args, **kwargs):
402 return _assert_raises(
403 except_cls, callable_, args, kwargs, msg=msg, check_context=True
404 )
405
406
407def assert_warns(except_cls, callable_, *args, **kwargs):

Calls 1

_assert_raisesFunction · 0.85