MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_subclass

Method test_subclass

test/base/test_events.py:858–867  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

856
857 @testing.requires.predictable_gc
858 def test_subclass(self):
859 class SubTarget(self.Target):
860 pass
861
862 st = SubTarget()
863 st.dispatch.some_event(1, 2)
864 del st
865 del SubTarget
866 gc_collect()
867 eq_(self.Target.__subclasses__(), [])
868
869
870class ListenOverrideTest(TearDownLocalEventsFixture, fixtures.TestBase):

Callers

nothing calls this directly

Calls 3

eq_Function · 0.90
some_eventMethod · 0.80
SubTargetClass · 0.70

Tested by

no test coverage detected