MCPcopy
hub / github.com/psycopg/psycopg / test_context_close

Function test_context_close

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

Source from the content-addressed store, hash-verified

284
285
286def test_context_close(conn):
287 with conn:
288 conn.execute("select 1")
289 conn.close()
290
291
292@pytest.mark.crdb_skip("pg_terminate_backend")

Callers

nothing calls this directly

Calls 2

executeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected