(self, async_engine)
| 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 | |
| 1174 | class _MySession(Session): |
nothing calls this directly
no test coverage detected