MCPcopy
hub / github.com/psycopg/psycopg / test_wait_bad

Function test_wait_bad

tests/test_waiting.py:252–259  ·  view source on GitHub ↗
(pgconn, waitfn)

Source from the content-addressed store, hash-verified

250
251@pytest.mark.parametrize("waitfn", waitfns)
252def 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

Callers

nothing calls this directly

Calls 3

send_queryMethod · 0.45
executeMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected