(pgconn, waitfn)
| 250 | |
| 251 | @pytest.mark.parametrize("waitfn", waitfns) |
| 252 | def test_wait_bad(pgconn, waitfn): |
| 253 | waitfn = getattr(waiting, waitfn) |
| 254 | |
| 255 | pgconn.send_query(b"select 1") |
| 256 | gen = generators.execute(pgconn) |
| 257 | pgconn.finish() |
| 258 | with pytest.raises(psycopg.OperationalError): |
| 259 | waitfn(gen, pgconn.socket) |
| 260 | |
| 261 | |
| 262 | @pytest.mark.slow |
nothing calls this directly
no test coverage detected