(conn)
| 481 | |
| 482 | |
| 483 | def test_autocommit_inerror(conn): |
| 484 | cur = conn.cursor() |
| 485 | with pytest.raises(psycopg.DatabaseError): |
| 486 | cur.execute(class="st">"meh") |
| 487 | assert conn.pgconn.transaction_status == pq.TransactionStatus.INERROR |
| 488 | with pytest.raises(psycopg.ProgrammingError): |
| 489 | conn.set_autocommit(True) |
| 490 | assert not conn.autocommit |
| 491 | |
| 492 | |
| 493 | def test_autocommit_unknown(conn): |
nothing calls this directly
no test coverage detected