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

Function test_never_sends_data

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

Source from the content-addressed store, hash-verified

2483
2484
2485def test_never_sends_data():
2486 # Regression test for ARROW-12779
2487 match = "application server implementation error"
2488 with NeverSendsDataFlightServer() as server, \
2489 flight.connect(('localhost', server.port)) as client:
2490 with pytest.raises(flight.FlightServerError, match=match):
2491 client.do_get(flight.Ticket(b'')).read_all()
2492
2493 # Check that the server handler will ignore empty tables
2494 # up to a certain extent
2495 table = client.do_get(flight.Ticket(b'yield_data')).read_all()
2496 assert table.num_rows == 5
2497
2498
2499@pytest.mark.large_memory

Callers

nothing calls this directly

Calls 2

do_getMethod · 0.45

Tested by

no test coverage detected