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

cpcloud 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 7c37b0d  ARROW-2161: [Python] Skip test_cython_api if ARROW_HOME isn't 
defined
7c37b0d is described below

commit 7c37b0d3376323c7bbfa4b612fec77238dc23c9d
Author: Phillip Cloud <[email protected]>
AuthorDate: Fri Feb 16 15:34:27 2018 -0500

    ARROW-2161: [Python] Skip test_cython_api if ARROW_HOME isn't defined
    
    Author: Phillip Cloud <[email protected]>
    
    Closes #1615 from cpcloud/ARROW-2161 and squashes the following commits:
    
    95adf634 [Phillip Cloud] ARROW-2161: Skip test_cython_api if ARROW_HOME 
isn't defined
---
 python/pyarrow/tests/test_cython.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/python/pyarrow/tests/test_cython.py 
b/python/pyarrow/tests/test_cython.py
index 51b1a48..df5e70e 100644
--- a/python/pyarrow/tests/test_cython.py
+++ b/python/pyarrow/tests/test_cython.py
@@ -56,14 +56,16 @@ setup_template = """if 1:
 """
 
 
[email protected](
+    'ARROW_HOME' not in os.environ,
+    reason='ARROW_HOME environment variable not defined')
 def test_cython_api(tmpdir):
     """
     Basic test for the Cython API.
     """
     pytest.importorskip('Cython')
 
-    if 'ARROW_HOME' in os.environ:
-        ld_path_default = os.path.join(os.environ['ARROW_HOME'], 'lib')
+    ld_path_default = os.path.join(os.environ['ARROW_HOME'], 'lib')
 
     test_ld_path = os.environ.get('PYARROW_TEST_LD_PATH', ld_path_default)
 

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to