This is an automated email from the ASF dual-hosted git repository.

kszucs pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 4a6735a  ARROW-10267: [Python] Skip flight test if 
disable_server_verification feature is not available
4a6735a is described below

commit 4a6735acaede825de3663ddf151294516282e58f
Author: Krisztián Szűcs <[email protected]>
AuthorDate: Sat Oct 10 20:30:47 2020 +0200

    ARROW-10267: [Python] Skip flight test if disable_server_verification 
feature is not available
    
    Closes #8427 from kszucs/flight-test
    
    Authored-by: Krisztián Szűcs <[email protected]>
    Signed-off-by: Krisztián Szűcs <[email protected]>
---
 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 4c8c40d..3a5f577 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)
 

Reply via email to