(aconn, apipeline)
| 7 | |
| 8 | |
| 9 | async def test_tpc_disabled(aconn, apipeline): |
| 10 | cur = await aconn.execute("show max_prepared_transactions") |
| 11 | |
| 12 | if int((await cur.fetchone())[0]): |
| 13 | pytest.skip("prepared transactions enabled") |
| 14 | |
| 15 | await aconn.rollback() |
| 16 | await aconn.tpc_begin("x") |
| 17 | with pytest.raises(psycopg.NotSupportedError): |
| 18 | await aconn.tpc_prepare() |
| 19 | |
| 20 | |
| 21 | class TestTPC: |
nothing calls this directly
no test coverage detected