(conn: psycopg.Connection[Any])
| 61 | |
| 62 | |
| 63 | def test_pipeline_broken_conn_exit(conn: psycopg.Connection[Any]) -> None: |
| 64 | with pytest.raises(e.OperationalError): |
| 65 | with conn.pipeline(): |
| 66 | conn.execute("select 1") |
| 67 | conn.close() |
| 68 | closed = True |
| 69 | |
| 70 | assert closed |
| 71 | |
| 72 | |
| 73 | def test_pipeline_exit_error_noclobber(conn, caplog): |