diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-01-13 21:20:54 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-01-13 21:20:54 -0500 |
commit | 52b25c5319b982486348069e2d9edd5259be03d3 (patch) | |
tree | 71c7246d13f786131ed3083d39bd9143a91699fb /lib/sqlalchemy/testing/engines.py | |
parent | bd74f81bb5b1158a1bc0a44e9990d4584380c481 (diff) | |
download | sqlalchemy-52b25c5319b982486348069e2d9edd5259be03d3.tar.gz |
- _cursor_execute() will close the cursor on error; oracle doesn't allow double close
- ensure no iterator changed size issues in testing.engines
Diffstat (limited to 'lib/sqlalchemy/testing/engines.py')
-rw-r--r-- | lib/sqlalchemy/testing/engines.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/testing/engines.py b/lib/sqlalchemy/testing/engines.py index a74bffe26..d85771f8a 100644 --- a/lib/sqlalchemy/testing/engines.py +++ b/lib/sqlalchemy/testing/engines.py @@ -61,7 +61,7 @@ class ConnectionKiller(object): # is collecting in finalize_fairy, deadlock. # not sure if this should be if pypy/jython only. # note that firebird/fdb definitely needs this though - for conn, rec in self.conns: + for conn, rec in list(self.conns): self._safe(conn.rollback) def _stop_test_ctx(self): @@ -81,7 +81,7 @@ class ConnectionKiller(object): def _stop_test_ctx_aggressive(self): self.close_all() - for conn, rec in self.conns: + for conn, rec in list(self.conns): self._safe(conn.close) rec.connection = None |