(conn, caplog)
| 81 | |
| 82 | |
| 83 | def test_pipeline_exit_error_noclobber_nested(conn, caplog): |
| 84 | caplog.set_level(logging.WARNING, logger="psycopg") |
| 85 | with pytest.raises(ZeroDivisionError): |
| 86 | with conn.pipeline(): |
| 87 | with conn.pipeline(): |
| 88 | conn.close() |
| 89 | 1 / 0 |
| 90 | |
| 91 | assert len(caplog.records) == 2 |
| 92 | |
| 93 | |
| 94 | def test_pipeline_exit_sync_trace(conn, trace): |