From c0221a8b42a7eb06290518688884edaaaad807c4 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Wed, 25 May 2022 07:46:45 +0200 Subject: [PATCH] test: fix str(Transaction) test relying on a broken behaviour It was relying on the need of an extra sync fixed in #309. --- tests/test_transaction.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/test_transaction.py b/tests/test_transaction.py index ef5a8971d..788b9270e 100644 --- a/tests/test_transaction.py +++ b/tests/test_transaction.py @@ -663,8 +663,6 @@ def test_explicit_rollback_of_enclosing_tx_outer_tx_unaffected(conn, svcconn): def test_str(conn, pipeline): with conn.transaction() as tx: if pipeline: - assert "INTRANS" not in str(tx) - pipeline.sync() assert "[INTRANS, pipeline=ON]" in str(tx) else: assert "[INTRANS]" in str(tx) -- 2.47.2