()
| 2483 | |
| 2484 | |
| 2485 | def 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 |
nothing calls this directly
no test coverage detected