MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _with_teardown

Method _with_teardown

test/engine/test_pool.py:83–85  ·  view source on GitHub ↗
(self, connection)

Source from the content-addressed store, hash-verified

81 conn.close()
82
83 def _with_teardown(self, connection):
84 self._teardown_conns.append(weakref.ref(connection))
85 return connection
86
87 def _queuepool_fixture(self, **kw):
88 dbapi, pool = self._queuepool_dbapi_fixture(**kw)

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected