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