Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/psycopg/psycopg
/ test_fileno
Function
test_fileno
tests/test_connection_async.py:663–667 ·
view source on GitHub ↗
(aconn)
Source
from the content-addressed store, hash-verified
661
662
663
async
def
test_fileno(aconn):
664
assert aconn.fileno() == aconn.pgconn.socket
665
await aconn.close()
666
with
pytest.raises(psycopg.OperationalError):
667
aconn.fileno()
668
669
670
async
def
test_cursor_factory(aconn):
Callers
nothing calls this directly
Calls
2
fileno
Method · 0.80
close
Method · 0.45
Tested by
no test coverage detected