MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _assert_invalidated

Function _assert_invalidated

test/engine/test_reconnect.py:1001–1007  ·  view source on GitHub ↗
(fn, *args)

Source from the content-addressed store, hash-verified

999
1000
1001def _assert_invalidated(fn, *args):
1002 try:
1003 fn(*args)
1004 assert False
1005 except tsa.exc.DBAPIError as e:
1006 if not e.connection_invalidated:
1007 raise
1008
1009
1010class RealPrePingEventHandlerTest(fixtures.TestBase):

Callers 6

test_reconnectMethod · 0.85
test_null_poolMethod · 0.85
test_closeMethod · 0.85
test_with_transactionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected