diff --git a/python/pyarrow/tests/test_flight.py b/python/pyarrow/tests/test_flight.py index 6bc273ecdd9a0..7b911b7ce5e11 100644 --- a/python/pyarrow/tests/test_flight.py +++ b/python/pyarrow/tests/test_flight.py @@ -1487,7 +1487,8 @@ def test_cancel_do_get(): FlightClient(('localhost', server.port)) as client: reader = client.do_get(flight.Ticket(b'ints')) reader.cancel() - with pytest.raises(flight.FlightCancelledError, match="(?i).*cancel.*"): + with pytest.raises(flight.FlightCancelledError, + match="(?i).*cancel.*"): reader.read_chunk()