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

Function test_large_descriptor

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

Source from the content-addressed store, hash-verified

2461@pytest.mark.large_memory
2462@pytest.mark.slow
2463def 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

Callers

nothing calls this directly

Calls 5

FlightServerBaseClass · 0.90
do_putMethod · 0.45
schemaMethod · 0.45
closeMethod · 0.45
do_exchangeMethod · 0.45

Tested by

no test coverage detected