(pgconn)
| 164 | |
| 165 | @pytest.mark.crdb_skip("pg_terminate_backend") |
| 166 | def test_reset_async(pgconn): |
| 167 | assert pgconn.status == pq.ConnStatus.OK |
| 168 | pgconn.exec_(b"select pg_terminate_backend(pg_backend_pid())") |
| 169 | assert pgconn.status == pq.ConnStatus.BAD |
| 170 | pgconn.reset_start() |
| 171 | wait(pgconn, "reset_poll") |
| 172 | |
| 173 | pgconn.finish() |
| 174 | with pytest.raises(psycopg.OperationalError): |
| 175 | pgconn.reset_start() |
| 176 | |
| 177 | with pytest.raises(psycopg.OperationalError): |
| 178 | pgconn.reset_poll() |
| 179 | |
| 180 | |
| 181 | def test_ping(dsn): |
nothing calls this directly
no test coverage detected