From: Daniele Varrazzo Date: Mon, 16 May 2022 20:49:02 +0000 (+0200) Subject: test(crdb): skip TPC tests X-Git-Tag: 3.1~49^2~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23ca7790be0efcb8e0b59795f66ca143d6828150;p=thirdparty%2Fpsycopg.git test(crdb): skip TPC tests --- diff --git a/tests/test_tpc.py b/tests/test_tpc.py index fa2241bd3..e93049c54 100644 --- a/tests/test_tpc.py +++ b/tests/test_tpc.py @@ -3,6 +3,8 @@ import pytest import psycopg from psycopg.pq import TransactionStatus +pytestmark = pytest.mark.crdb("skip", reason="2-phase commit") + def test_tpc_disabled(conn, pipeline): val = int(conn.execute("show max_prepared_transactions").fetchone()[0]) diff --git a/tests/test_tpc_async.py b/tests/test_tpc_async.py index 30ca0ed4e..c08237627 100644 --- a/tests/test_tpc_async.py +++ b/tests/test_tpc_async.py @@ -3,7 +3,10 @@ import pytest import psycopg from psycopg.pq import TransactionStatus -pytestmark = [pytest.mark.asyncio] +pytestmark = [ + pytest.mark.asyncio, + pytest.mark.crdb("skip", reason="2-phase commit"), +] async def test_tpc_disabled(aconn, apipeline):