You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ks...@apache.org on 2019/12/14 09:15:28 UTC

[arrow] branch master updated: ARROW-7388: [Python] Skip HDFS tests if libhdfs cannot be located

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 ef8025f  ARROW-7388: [Python] Skip HDFS tests if libhdfs cannot be located
ef8025f is described below

commit ef8025f5a86e6c1ee3bb57c3c22d75a7b5009e7b
Author: Krisztián Szűcs <sz...@gmail.com>
AuthorDate: Sat Dec 14 10:15:04 2019 +0100

    ARROW-7388: [Python] Skip HDFS tests if libhdfs cannot be located
    
    Closes #6031 from kszucs/skip-hdfs and squashes the following commits:
    
    12c513363 <Krisztián Szűcs> Skip hdfs tests if libhdfs cannot be located
    
    Authored-by: Krisztián Szűcs <sz...@gmail.com>
    Signed-off-by: Krisztián Szűcs <sz...@gmail.com>
---
 python/pyarrow/tests/test_fs.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/python/pyarrow/tests/test_fs.py b/python/pyarrow/tests/test_fs.py
index 0b0f1a3..5c94630 100644
--- a/python/pyarrow/tests/test_fs.py
+++ b/python/pyarrow/tests/test_fs.py
@@ -116,6 +116,9 @@ def subtree_s3fs(request, s3fs):
 @pytest.fixture
 def hdfs(request, hdfs_server):
     request.config.pyarrow.requires('hdfs')
+    if not pa.have_libhdfs():
+        pytest.skip('Cannot locate libhdfs')
+
     from pyarrow.fs import HdfsOptions, HadoopFileSystem
 
     host, port, user = hdfs_server
@@ -513,6 +516,8 @@ def test_s3_options(minio_server):
 @pytest.mark.hdfs
 def test_hdfs_options(hdfs_server):
     from pyarrow.fs import HdfsOptions, HadoopFileSystem
+    if not pa.have_libhdfs():
+        pytest.skip('Cannot locate libhdfs')
 
     options = HdfsOptions()
     assert options.endpoint == ('', 0)