MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_cursor_explode

Method test_cursor_explode

test/engine/test_reconnect.py:979–988  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

977 return eng
978
979 def test_cursor_explode(self):
980 db = self._fixture(False, False)
981 conn = db.connect()
982 result = conn.exec_driver_sql("select foo")
983 result.close()
984 conn.close()
985 eq_(
986 db.pool.logger.error.mock_calls,
987 [call("Error closing cursor", exc_info=True)],
988 )
989
990 def test_cursor_shutdown_in_initialize(self):
991 db = self._fixture(True, True)

Callers

nothing calls this directly

Calls 6

_fixtureMethod · 0.95
eq_Function · 0.90
callFunction · 0.85
connectMethod · 0.45
exec_driver_sqlMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected