diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-08-17 17:59:08 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-08-17 17:59:08 +0000 |
| commit | 95748cfc024a9fa875c0ec9323ec5266bb4725c5 (patch) | |
| tree | 6473ca891975813e5abea96912a2fdc20a6dce48 /test/engine/pool.py | |
| parent | 3469724a42acff29c8e064b3cfaf8d073790624b (diff) | |
| download | sqlalchemy-95748cfc024a9fa875c0ec9323ec5266bb4725c5.tar.gz | |
- added extra argument con_proxy to ConnectionListener interface checkout/checkin methods
- changed testing connection closer to work on _ConnectionFairy instances, resulting in
pool checkins, not actual closes
- disabled session two phase test for now, needs work
- added some two-phase support to TLEngine, not tested
- TLTransaction is now a wrapper
Diffstat (limited to 'test/engine/pool.py')
| -rw-r--r-- | test/engine/pool.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/engine/pool.py b/test/engine/pool.py index fd93ac20e..98c013437 100644 --- a/test/engine/pool.py +++ b/test/engine/pool.py @@ -418,15 +418,17 @@ class PoolTest(PersistTest): assert con is not None assert record is not None self.connected.append(con) - def inst_checkout(self, con, record): - print "checkout(%s, %s)" % (con, record) + def inst_checkout(self, con, record, proxy): + print "checkout(%s, %s, %s)" % (con, record, proxy) assert con is not None assert record is not None + assert proxy is not None self.checked_out.append(con) - def inst_checkin(self, con, record): - print "checkin(%s, %s)" % (con, record) + def inst_checkin(self, con, record, proxy): + print "checkin(%s, %s, %s)" % (con, record, proxy) # con can be None if invalidated assert record is not None + assert proxy is not None self.checked_in.append(con) class ListenAll(interfaces.PoolListener, InstrumentingListener): pass @@ -434,10 +436,10 @@ class PoolTest(PersistTest): def connect(self, con, record): pass class ListenCheckOut(InstrumentingListener): - def checkout(self, con, record, num): + def checkout(self, con, record, proxy, num): pass class ListenCheckIn(InstrumentingListener): - def checkin(self, con, record): + def checkin(self, con, proxy, record): pass def _pool(**kw): |
