summaryrefslogtreecommitdiff
path: root/tests/testutils.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2020-07-22 02:14:18 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2020-07-22 02:14:18 +0100
commita9153ac373ce613164a9bf913f88dda5e4e00391 (patch)
treeafe33513002fac2d608f09558ec0b8aeb47e1085 /tests/testutils.py
parent701637b5fa63d2af1ba133256cfe834e45146b4e (diff)
downloadpsycopg2-a9153ac373ce613164a9bf913f88dda5e4e00391.tar.gz
Some extra cursors test skipped on CockroachDB
Skip named cursor tests
Diffstat (limited to 'tests/testutils.py')
-rw-r--r--tests/testutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testutils.py b/tests/testutils.py
index f1f7dde..4515d0e 100644
--- a/tests/testutils.py
+++ b/tests/testutils.py
@@ -444,10 +444,10 @@ def skip_if_crdb(f):
"""Skip a test or test class if we are testing against CockroachDB."""
@wraps(f)
- def skip_if_crdb_(self):
+ def skip_if_crdb_(self, *args, **kwargs):
if crdb_version(self.connect()) is not None:
self.skipTest("not supported on CockroachDB")
- return f(self)
+ return f(self, *args, **kwargs)
return skip_if_crdb_