MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / fail

Method fail

test/engine/test_transaction.py:385–386  ·  view source on GitHub ↗
(*arg, **kw)

Source from the content-addressed store, hash-verified

383 """test #7388"""
384
385 def fail(*arg, **kw):
386 raise BaseException("some base exception")
387
388 with mock.patch.object(testing.db.dialect, "do_commit", fail):
389 with expect_raises_message(BaseException, "some base exception"):

Calls

no outgoing calls

Tested by

no test coverage detected