MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_gc

Method test_gc

test/ext/asyncio/test_session.py:1160–1171  ·  view source on GitHub ↗
(self, async_engine)

Source from the content-addressed store, hash-verified

1158
1159 @testing.requires.predictable_gc
1160 def test_gc(self, async_engine):
1161 ReversibleProxy._proxy_objects.clear()
1162
1163 eq_(len(ReversibleProxy._proxy_objects), 0)
1164
1165 async_session = AsyncSession(async_engine)
1166
1167 eq_(len(ReversibleProxy._proxy_objects), 1)
1168
1169 del async_session
1170
1171 eq_(len(ReversibleProxy._proxy_objects), 0)
1172
1173
1174class _MySession(Session):

Callers

nothing calls this directly

Calls 3

eq_Function · 0.90
AsyncSessionClass · 0.90
clearMethod · 0.45

Tested by

no test coverage detected