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

Method test_gc_engine

test/ext/asyncio/test_engine.py:1537–1548  ·  view source on GitHub ↗
(self, testing_engine)

Source from the content-addressed store, hash-verified

1535 @testing.requires.predictable_gc
1536 @async_test
1537 async def test_gc_engine(self, testing_engine):
1538 ReversibleProxy._proxy_objects.clear()
1539
1540 eq_(len(ReversibleProxy._proxy_objects), 0)
1541
1542 async_engine = AsyncEngine(testing.db)
1543
1544 eq_(len(ReversibleProxy._proxy_objects), 1)
1545
1546 del async_engine
1547
1548 eq_(len(ReversibleProxy._proxy_objects), 0)
1549
1550 @testing.requires.predictable_gc
1551 @async_test

Callers

nothing calls this directly

Calls 3

eq_Function · 0.90
AsyncEngineClass · 0.90
clearMethod · 0.45

Tested by

no test coverage detected