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

Function test_flight_client_close

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

Source from the content-addressed store, hash-verified

1204
1205
1206def test_flight_client_close():
1207 with ConstantFlightServer() as server, \
1208 flight.connect(('localhost', server.port)) as client:
1209 assert list(client.list_flights()) == []
1210 client.close()
1211 client.close() # Idempotent
1212 with pytest.raises(pa.ArrowInvalid):
1213 list(client.list_flights())
1214
1215
1216def 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