arrow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject [arrow] branch master updated: ARROW-1879: [Python] Dask integration tests are not skipped if dask is not installed
Date Mon, 04 Dec 2017 14:21:22 GMT
This is an automated email from the ASF dual-hosted git repository.

wesm 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 8f2dbee  ARROW-1879: [Python] Dask integration tests are not skipped if dask is not
installed
8f2dbee is described below

commit 8f2dbee49dfef8b2f7bc68f8fe978f4b24fa5a79
Author: Phillip Cloud <cpcloud@gmail.com>
AuthorDate: Mon Dec 4 09:21:18 2017 -0500

    ARROW-1879: [Python] Dask integration tests are not skipped if dask is not installed
    
    Author: Phillip Cloud <cpcloud@gmail.com>
    
    Closes #1384 from cpcloud/ARROW-1879 and squashes the following commits:
    
    7b9503e9 [Phillip Cloud] ARROW-1879: [Python] Dask integration tests are not skipped if
dask is not installed
---
 python/testing/dask_tests/test_dask_integration.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/python/testing/dask_tests/test_dask_integration.py b/python/testing/dask_tests/test_dask_integration.py
index e678348..842c45f 100644
--- a/python/testing/dask_tests/test_dask_integration.py
+++ b/python/testing/dask_tests/test_dask_integration.py
@@ -14,12 +14,18 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
+
+import pytest
+
 from datetime import date, timedelta
 import csv
 from random import randint
-import dask.dataframe as dd
+
 import pyarrow as pa
 
+dd = pytest.importorskip('dask.dataframe')
+
+
 def make_datafiles(tmpdir, prefix='data', num_files=20):
     rowcount = 5000
     fieldnames = ['date', 'temperature', 'dewpoint']
@@ -37,6 +43,7 @@ def make_datafiles(tmpdir, prefix='data', num_files=20):
                                  'dewpoint': dewpoint})
                 the_date += timedelta(days=1)
 
+
 def test_dask_file_read(tmpdir):
     prefix = 'data'
     make_datafiles(tmpdir, prefix)

-- 
To stop receiving notification emails like this one, please contact
['"commits@arrow.apache.org" <commits@arrow.apache.org>'].

Mime
View raw message