Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
286
def
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
execute
Method · 0.45
close
Method · 0.45
Tested by
no test coverage detected