From 97d85b7612e0bf7504f4f55ee03e3a86dbd2b3df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kriszti=C3=A1n=20Sz=C5=B1cs?= Date: Sat, 10 Oct 2020 14:49:06 +0200 Subject: [PATCH] skip test case if raises not implemented --- python/pyarrow/tests/test_flight.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python/pyarrow/tests/test_flight.py b/python/pyarrow/tests/test_flight.py index 4c8c40d884b4..3a5f5778f62b 100644 --- a/python/pyarrow/tests/test_flight.py +++ b/python/pyarrow/tests/test_flight.py @@ -1049,8 +1049,11 @@ def test_tls_disable_server_verification(): certs = example_tls_certs() with ConstantFlightServer(tls_certificates=certs["certificates"]) as s: - client = FlightClient(('localhost', s.port), - disable_server_verification=True) + try: + client = FlightClient(('localhost', s.port), + disable_server_verification=True) + except NotImplementedError: + pytest.skip('disable_server_verification feature is not available') data = client.do_get(flight.Ticket(b'ints')).read_all() assert data.equals(table)