Re: [sqlalchemy] alternate ways to removing event listeners?

2016-09-26 Thread Mike Bayer
On 09/26/2016 02:39 PM, Iain Duncan wrote: Hi folks, I'm having an issue with event listener registration. I figured out that I need to deregister my listeners after each functional test so they don't get registered twice in the same thread and execute too many times. But I was using an anonymo

[sqlalchemy] alternate ways to removing event listeners?

2016-09-26 Thread Iain Duncan
Hi folks, I'm having an issue with event listener registration. I figured out that I need to deregister my listeners after each functional test so they don't get registered twice in the same thread and execute too many times. But I was using an anonymous callable to register them, like this: event