summaryrefslogtreecommitdiff
path: root/test/lib/engines.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-12-01 14:10:11 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2010-12-01 14:10:11 -0500
commitd30678d18de7828f03f8179d7980cab2e66c18bc (patch)
tree65cc0185dd53af871ec8b2993ea2752475ae926b /test/lib/engines.py
parentdf7379f992938af7ec05f0c46ccef3305ebcd5cc (diff)
downloadsqlalchemy-d30678d18de7828f03f8179d7980cab2e66c18bc.tar.gz
new calling style: event.listen(target, identifier, fn)
Diffstat (limited to 'test/lib/engines.py')
-rw-r--r--test/lib/engines.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lib/engines.py b/test/lib/engines.py
index fdf4163c8..0f3ccf288 100644
--- a/test/lib/engines.py
+++ b/test/lib/engines.py
@@ -135,9 +135,9 @@ def testing_engine(url=None, options=None):
options = options or config.db_opts
engine = create_engine(url, **options)
- 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)
+ event.listen(engine, 'on_after_execute', asserter.execute)
+ event.listen(engine, 'on_after_cursor_execute', asserter.cursor_execute)
+ event.listen(engine.pool, 'on_checkout', testing_reaper.checkout)
# may want to call this, results
# in first-connect initializers