Skip to content

Commit

Permalink
apacheGH-34743: [Python] Relax condition in flaky Flight test (apache…
Browse files Browse the repository at this point in the history
…#34747)

### Rationale for this change
This test is consistently flaky on AMD64 macOS.

### What changes are included in this PR?

Relax the test condition a bit.
### Are these changes tested?

This is a change to a test.

### Are there any user-facing changes?

No.
* Closes: apache#34743

Authored-by: David Li <[email protected]>
Signed-off-by: Will Jones <[email protected]>
  • Loading branch information
lidavidm authored and ArgusLi committed May 15, 2023
1 parent 62f7d81 commit 6e1d35e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyarrow/tests/test_flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -2045,7 +2045,7 @@ def test_generic_options():
client = flight.connect(('localhost', s.port),
tls_root_certs=certs["root_cert"],
generic_options=options)
with pytest.raises(pa.ArrowInvalid):
with pytest.raises((pa.ArrowInvalid, flight.FlightCancelledError)):
client.do_get(flight.Ticket(b'ints'))
client.close()

Expand Down

0 comments on commit 6e1d35e

Please sign in to comment.