Fixes gc collection issues later on that occur in test_mixin.py
HUGE thanks to Federico Caselli for finding the issue!
Change-Id: I6444e868ab3d6ff62fb644ebe2fbded7df139c9c
from sqlalchemy.orm import synonym_for
from sqlalchemy.orm.decl_api import DeclarativeMeta
from sqlalchemy.orm.decl_base import _DeferredMapperConfig
+from sqlalchemy.orm.events import InstrumentationEvents
from sqlalchemy.orm.events import MapperEvents
from sqlalchemy.testing import assert_raises
from sqlalchemy.testing import assert_raises_message
)
@testing.teardown_events(MapperEvents)
+ @testing.teardown_events(InstrumentationEvents)
def test_instrument_class_before_instrumentation(self):
# test #3388