On Sep 11, 2013, at 1:16 PM, Alex Grönholm <alex.gronh...@nextday.fi> wrote:
> I'm trying to test code that listens to session events on all sessions. I > can't pin it on any particular session or even sessionmaker due to the > architecture of the software (sessions are explicitly instantiated on the > fly). > All is well except that the listener sticks after the test is done, breaking > test isolation. The ideal solution would be to unregister the listener in > teardown(), but I don't see anything in the event API that could be used to > do that. the public API is in 0.9 (of course there are crude hacks in 0.8) : http://docs.sqlalchemy.org/en/latest/changelog/migration_09.html#event-removal-api
signature.asc
Description: Message signed with OpenPGP using GPGMail