()
| 1368 | |
| 1369 | |
| 1370 | def test_nicer_server_exceptions(): |
| 1371 | with ConvenienceServer() as server, \ |
| 1372 | FlightClient(('localhost', server.port)) as client: |
| 1373 | with pytest.raises(flight.FlightServerError, |
| 1374 | match="a bytes-like object is required"): |
| 1375 | list(client.do_action('bad-action')) |
| 1376 | # While Flight/C++ sends across the original status code, it |
| 1377 | # doesn't get mapped to the equivalent code here, since we |
| 1378 | # want to be able to distinguish between client- and server- |
| 1379 | # side errors. |
| 1380 | with pytest.raises(flight.FlightServerError, |
| 1381 | match="ArrowMemoryError"): |
| 1382 | list(client.do_action('arrow-exception')) |
| 1383 | |
| 1384 | |
| 1385 | def test_get_port(): |
nothing calls this directly
no test coverage detected