MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_detach_closed

Method test_detach_closed

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

Source from the content-addressed store, hash-verified

1209 conn.detach()
1210
1211 def test_detach_closed(self):
1212 with self.engine.connect() as conn:
1213 pass
1214 with expect_raises_message(
1215 exc.ResourceClosedError, "This Connection is closed"
1216 ):
1217 conn.detach()
1218
1219 @testing.requires.independent_connections
1220 def test_multiple_invalidate(self):

Callers

nothing calls this directly

Calls 3

expect_raises_messageFunction · 0.90
connectMethod · 0.45
detachMethod · 0.45

Tested by

no test coverage detected