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

Function test_large_descriptor

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

Source from the content-addressed store, hash-verified

2499@pytest.mark.large_memory
2500@pytest.mark.slow
2501def test_large_descriptor():
2502 # Regression test for ARROW-13253. Placed here with appropriate marks
2503 # since some CI pipelines can't run the C++ equivalent
2504 large_descriptor = flight.FlightDescriptor.for_command(
2505 b' ' * (2 ** 31 + 1))
2506 with FlightServerBase() as server, \
2507 flight.connect(('localhost', server.port)) as client:
2508 with pytest.raises(OSError,
2509 match="Failed to serialize Flight descriptor"):
2510 writer, _ = client.do_put(large_descriptor, pa.schema([]))
2511 writer.close()
2512 with pytest.raises(pa.ArrowException,
2513 match="Failed to serialize Flight descriptor"):
2514 client.do_exchange(large_descriptor)
2515
2516
2517@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