()
| 2461 | @pytest.mark.large_memory |
| 2462 | @pytest.mark.slow |
| 2463 | def test_large_descriptor(): |
| 2464 | # Regression test for ARROW-13253. Placed here with appropriate marks |
| 2465 | # since some CI pipelines can't run the C++ equivalent |
| 2466 | large_descriptor = flight.FlightDescriptor.for_command( |
| 2467 | b' ' * (2 ** 31 + 1)) |
| 2468 | with FlightServerBase() as server, \ |
| 2469 | flight.connect(('localhost', server.port)) as client: |
| 2470 | with pytest.raises(OSError, |
| 2471 | match="Failed to serialize Flight descriptor"): |
| 2472 | writer, _ = client.do_put(large_descriptor, pa.schema([])) |
| 2473 | writer.close() |
| 2474 | with pytest.raises(pa.ArrowException, |
| 2475 | match="Failed to serialize Flight descriptor"): |
| 2476 | client.do_exchange(large_descriptor) |
| 2477 | |
| 2478 | |
| 2479 | @pytest.mark.large_memory |
nothing calls this directly
no test coverage detected