From f9cc104cbf44cef2f6f8bdcd488f5b185942bd9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Knut=20Olav=20L=C3=B8ite?= Date: Sat, 3 May 2025 07:01:15 +0200 Subject: [PATCH] chore: ignore tx warnings in pdml test --- test/mockserver_tests/test_basics.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/mockserver_tests/test_basics.py b/test/mockserver_tests/test_basics.py index e1445829..cffbda0d 100644 --- a/test/mockserver_tests/test_basics.py +++ b/test/mockserver_tests/test_basics.py @@ -218,7 +218,11 @@ def test_partitioned_dml(self): add_update_count(sql, 100, AutocommitDmlMode.PARTITIONED_NON_ATOMIC) engine = create_engine( "spanner:///projects/p/instances/i/databases/d", - connect_args={"client": self.client, "pool": PingingPool(size=10)}, + connect_args={ + "client": self.client, + "pool": PingingPool(size=10), + "ignore_transaction_warnings": True, + }, ) # TODO: Support autocommit_dml_mode as a connection variable in execution # options.