MCPcopy
hub / github.com/psycopg/psycopg / test_connection_closed

Function test_connection_closed

tests/test_pipeline.py:36–40  ·  view source on GitHub ↗
(conn)

Source from the content-addressed store, hash-verified

34
35
36def test_connection_closed(conn):
37 conn.close()
38 with pytest.raises(e.OperationalError):
39 with conn.pipeline():
40 pass
41
42
43def test_pipeline_status(conn: psycopg.Connection[Any]) -> None:

Callers

nothing calls this directly

Calls 2

closeMethod · 0.45
pipelineMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…