(conn)
| 229 | |
| 230 | |
| 231 | def test_copy_in_buffers_pg_error(conn): |
| 232 | cur = conn.cursor() |
| 233 | ensure_table(cur, sample_tabledef) |
| 234 | with pytest.raises(e.UniqueViolation): |
| 235 | with cur.copy("copy copy_in from stdin (format text)") as copy: |
| 236 | copy.write(sample_text) |
| 237 | copy.write(sample_text) |
| 238 | assert conn.info.transaction_status == pq.TransactionStatus.INERROR |
| 239 | |
| 240 | |
| 241 | def test_copy_bad_result(conn): |
nothing calls this directly
no test coverage detected