summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/test/engines.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-08-29 11:22:46 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-08-29 11:22:46 -0400
commit1149197a36f01dae1f8da82b7cfb73a7777e7a4a (patch)
tree3b2cacd6c9fc75c51862eb886420036b7cd08c47 /lib/sqlalchemy/test/engines.py
parenta635750213c346a895e417ae8e629ce924d557e8 (diff)
downloadsqlalchemy-1149197a36f01dae1f8da82b7cfb73a7777e7a4a.tar.gz
- moved out to on_before_execute, on_after_execute. not much option here,
need both forms, the wrapping thing is just silly - fixed the listen() to not re-wrap continuously.
Diffstat (limited to 'lib/sqlalchemy/test/engines.py')
-rw-r--r--lib/sqlalchemy/test/engines.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/test/engines.py b/lib/sqlalchemy/test/engines.py
index 779f87264..8b930175f 100644
--- a/lib/sqlalchemy/test/engines.py
+++ b/lib/sqlalchemy/test/engines.py
@@ -135,8 +135,8 @@ def testing_engine(url=None, options=None):
options = options or config.db_opts
engine = create_engine(url, **options)
- event.listen(asserter.execute, 'on_execute', engine)
- event.listen(asserter.cursor_execute, 'on_cursor_execute', engine)
+ event.listen(asserter.execute, 'on_after_execute', engine)
+ event.listen(asserter.cursor_execute, 'on_after_cursor_execute', engine)
event.listen(testing_reaper.checkout, 'on_checkout', engine.pool)
# may want to call this, results