summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/engines.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-12-07 17:48:32 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2014-12-07 17:48:32 -0500
commit1b260c7959c9b89e6a3993d5d96bc6b0918a8fb0 (patch)
tree59602c3151094de79d84c60391cf64e4a1b94084 /lib/sqlalchemy/testing/engines.py
parent68f1bcc9da191fc72a943f2353c8d80a39bdb76a (diff)
parentc8817e608788799837a91b1d2616227594698d2b (diff)
downloadsqlalchemy-1b260c7959c9b89e6a3993d5d96bc6b0918a8fb0.tar.gz
Merge branch 'master' into ticket_3100
Diffstat (limited to 'lib/sqlalchemy/testing/engines.py')
-rw-r--r--lib/sqlalchemy/testing/engines.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sqlalchemy/testing/engines.py b/lib/sqlalchemy/testing/engines.py
index 1284f9c2a..0f6f59401 100644
--- a/lib/sqlalchemy/testing/engines.py
+++ b/lib/sqlalchemy/testing/engines.py
@@ -280,10 +280,10 @@ class DBAPIProxyCursor(object):
"""
- def __init__(self, engine, conn):
+ def __init__(self, engine, conn, *args, **kwargs):
self.engine = engine
self.connection = conn
- self.cursor = conn.cursor()
+ self.cursor = conn.cursor(*args, **kwargs)
def execute(self, stmt, parameters=None, **kw):
if parameters:
@@ -311,8 +311,8 @@ class DBAPIProxyConnection(object):
self.engine = engine
self.cursor_cls = cursor_cls
- def cursor(self):
- return self.cursor_cls(self.engine, self.conn)
+ def cursor(self, *args, **kwargs):
+ return self.cursor_cls(self.engine, self.conn, *args, **kwargs)
def close(self):
self.conn.close()