]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
test: fix str(Transaction) test relying on a broken behaviour 310/head
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 25 May 2022 05:46:45 +0000 (07:46 +0200)
committerDenis Laxalde <denis.laxalde@dalibo.com>
Wed, 25 May 2022 07:28:57 +0000 (09:28 +0200)
It was relying on the need of an extra sync fixed in #309.

tests/test_transaction.py

index ef5a8971d77407106c9da64105cf2ed38af6581d..788b9270eaa360d4f6bfa43081e3d74eaa0c5e89 100644 (file)
@@ -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)