You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by uw...@apache.org on 2017/06/26 06:59:39 UTC

arrow git commit: ARROW-1131: [Python] Enable the Parquet unit tests by default if the extension imports

Repository: arrow
Updated Branches:
  refs/heads/master bea30d6c2 -> fc3f8c2a0


ARROW-1131: [Python] Enable the Parquet unit tests by default if the extension imports

@xhochy what do you think about this?

Author: Wes McKinney <we...@twosigma.com>

Closes #781 from wesm/ARROW-1131 and squashes the following commits:

8803e52 [Wes McKinney] Enable the Parquet unit tests by default if the extension imports


Project: http://git-wip-us.apache.org/repos/asf/arrow/repo
Commit: http://git-wip-us.apache.org/repos/asf/arrow/commit/fc3f8c2a
Tree: http://git-wip-us.apache.org/repos/asf/arrow/tree/fc3f8c2a
Diff: http://git-wip-us.apache.org/repos/asf/arrow/diff/fc3f8c2a

Branch: refs/heads/master
Commit: fc3f8c2a05a2e3b2aec9b319f2686fe678e307f4
Parents: bea30d6
Author: Wes McKinney <we...@twosigma.com>
Authored: Mon Jun 26 08:59:35 2017 +0200
Committer: Uwe L. Korn <uw...@xhochy.com>
Committed: Mon Jun 26 08:59:35 2017 +0200

----------------------------------------------------------------------
 python/pyarrow/tests/conftest.py | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/arrow/blob/fc3f8c2a/python/pyarrow/tests/conftest.py
----------------------------------------------------------------------
diff --git a/python/pyarrow/tests/conftest.py b/python/pyarrow/tests/conftest.py
index 9b767fc..fa9608f 100644
--- a/python/pyarrow/tests/conftest.py
+++ b/python/pyarrow/tests/conftest.py
@@ -20,6 +20,17 @@ from pytest import skip
 
 groups = ['hdfs', 'parquet']
 
+defaults = {
+    'hdfs': False,
+    'parquet': False
+}
+
+try:
+    import pyarrow.parquet
+    defaults['parquet'] = True
+except ImportError:
+    pass
+
 
 def pytest_configure(config):
     pass
@@ -28,7 +39,7 @@ def pytest_configure(config):
 def pytest_addoption(parser):
     for group in groups:
         parser.addoption('--{0}'.format(group), action='store_true',
-                         default=False,
+                         default=defaults[group],
                          help=('Enable the {0} test group'.format(group)))
 
     for group in groups: