MCPcopy
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
658def test_fileno(conn):
659 assert conn.fileno() == conn.pgconn.socket
660 conn.close()
661 with pytest.raises(psycopg.OperationalError):
662 conn.fileno()
663
664
665def test_cursor_factory(conn):

Callers

nothing calls this directly

Calls 2

filenoMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected