(self, async_engine)
| 1066 | |
| 1067 | @testing.requires.predictable_gc |
| 1068 | def test_gc(self, async_engine): |
| 1069 | ReversibleProxy._proxy_objects.clear() |
| 1070 | |
| 1071 | eq_(len(ReversibleProxy._proxy_objects), 0) |
| 1072 | |
| 1073 | async_session = AsyncSession(async_engine) |
| 1074 | |
| 1075 | eq_(len(ReversibleProxy._proxy_objects), 1) |
| 1076 | |
| 1077 | del async_session |
| 1078 | |
| 1079 | eq_(len(ReversibleProxy._proxy_objects), 0) |
| 1080 | |
| 1081 | |
| 1082 | class _MySession(Session): |
nothing calls this directly
no test coverage detected