MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / is_disconnect

Method is_disconnect

test/engine/test_reconnect.py:1238–1243  ·  view source on GitHub ↗
(e, conn, cursor)

Source from the content-addressed store, hash-verified

1236
1237 def test_ensure_is_disconnect_gets_connection(self):
1238 def is_disconnect(e, conn, cursor):
1239 # connection is still present
1240 assert conn.dbapi_connection is not None
1241 # the error usually occurs on connection.cursor(),
1242 # though MySQLdb we get a non-working cursor.
1243 # assert cursor is None
1244
1245 self.engine.dialect.is_disconnect = is_disconnect
1246

Calls

no outgoing calls

Tested by

no test coverage detected