From: Daniele Varrazzo Date: Wed, 25 May 2022 05:46:45 +0000 (+0200) Subject: test: fix str(Transaction) test relying on a broken behaviour X-Git-Tag: 3.1~70^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F310%2Fhead;p=thirdparty%2Fpsycopg.git test: fix str(Transaction) test relying on a broken behaviour It was relying on the need of an extra sync fixed in #309. --- 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)