diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2020-07-21 03:00:50 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2020-07-21 22:22:23 +0100 |
commit | e154cbe5aab43e1b5a85c4467e5738a6dcd6fd69 (patch) | |
tree | 86a3bef13e7d248a8e65ee61867fbad2567d4b56 /tests/testutils.py | |
parent | bca72937d8f14d59c09205788625c5ac821c8e22 (diff) | |
download | psycopg2-e154cbe5aab43e1b5a85c4467e5738a6dcd6fd69.tar.gz |
Skip connection tests which cannot pass on CockroachDB
Features not supported seem:
- isolation level (always serializable)
- client encodings
- notices (maybe there is a way to generate them)
- 2 phase commit
- reset (because of the lack of transaction deferrable)
- backend pid
Diffstat (limited to 'tests/testutils.py')
-rw-r--r-- | tests/testutils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testutils.py b/tests/testutils.py index ec53ba3..9b607f7 100644 --- a/tests/testutils.py +++ b/tests/testutils.py @@ -248,6 +248,9 @@ def skip_if_tpc_disabled(f): @wraps(f) def skip_if_tpc_disabled_(self): cnn = self.connect() + if crdb_version(cnn): + self.skipTest("two phase transction not supported on CockroachDB") + cur = cnn.cursor() try: cur.execute("SHOW max_prepared_transactions;") |