MCPcopy
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
663async 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
670async def test_cursor_factory(aconn):

Callers

nothing calls this directly

Calls 2

filenoMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected