MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_gc_engine

Method test_gc_engine

test/ext/asyncio/test_engine.py:1608–1619  ·  test/ext/asyncio/test_engine.py::AsyncProxyTest.test_gc_engine
(self, testing_engine)

Source from the content-addressed store, hash-verified

1606 @testing.requires.predictable_gc
1607 @async_test
1608 async def test_gc_engine(self, testing_engine):
1609 ReversibleProxy._proxy_objects.clear()
1610
1611 eq_(len(ReversibleProxy._proxy_objects), 0)
1612
1613 async_engine = AsyncEngine(testing.db)
1614
1615 eq_(len(ReversibleProxy._proxy_objects), 1)
1616
1617 del async_engine
1618
1619 eq_(len(ReversibleProxy._proxy_objects), 0)
1620
1621 @testing.requires.predictable_gc
1622 @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