MCPcopy
hub / github.com/psycopg/psycopg / test_broken_connection

Function test_broken_connection

tests/test_connection.py:556–560  ·  view source on GitHub ↗
(conn)

Source from the content-addressed store, hash-verified

554
555@pytest.mark.crdb_skip("pg_terminate_backend")
556def test_broken_connection(conn):
557 cur = conn.cursor()
558 with pytest.raises(psycopg.DatabaseError):
559 cur.execute("select pg_terminate_backend(pg_backend_pid())")
560 assert conn.closed
561
562
563@pytest.mark.crdb_skip("do")

Callers

nothing calls this directly

Calls 2

cursorMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected