MCPcopy Create free account
hub / github.com/apache/arrow / test_flight_client_close

Function test_flight_client_close

python/pyarrow/tests/test_flight.py:1168–1175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1166
1167
1168def test_flight_client_close():
1169 with ConstantFlightServer() as server, \
1170 flight.connect(('localhost', server.port)) as client:
1171 assert list(client.list_flights()) == []
1172 client.close()
1173 client.close() # Idempotent
1174 with pytest.raises(pa.ArrowInvalid):
1175 list(client.list_flights())
1176
1177
1178def test_flight_do_get_ints():

Callers

nothing calls this directly

Calls 4

listFunction · 0.85
list_flightsMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected