(conn)
| 471 | |
| 472 | |
| 473 | def test_autocommit_intrans(conn): |
| 474 | cur = conn.cursor() |
| 475 | cur.execute("select 1") |
| 476 | assert cur.fetchone() == (1,) |
| 477 | assert conn.pgconn.transaction_status == pq.TransactionStatus.INTRANS |
| 478 | with pytest.raises(psycopg.ProgrammingError): |
| 479 | conn.set_autocommit(True) |
| 480 | assert not conn.autocommit |
| 481 | |
| 482 | |
| 483 | def test_autocommit_inerror(conn): |
nothing calls this directly
no test coverage detected