BryanCutler closed pull request #22273: [SPARK-25272][PYTHON][TEST] Add test to
better indicate pyarrow is installed and related tests will run
URL: https://github.com/apache/spark/pull/22273
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/python/pyspark/sql/tests/test_arrow.py
b/python/pyspark/sql/tests/test_arrow.py
index 6e75e82d58009..ee054a9b9ac1f 100644
--- a/python/pyspark/sql/tests/test_arrow.py
+++ b/python/pyspark/sql/tests/test_arrow.py
@@ -30,6 +30,21 @@
from pyspark.util import _exception_message
+class HaveArrowTests(unittest.TestCase):
+
+ @unittest.skipIf(have_pandas and have_pyarrow,
+ "Required PyArrow and Pandas were found, Arrow tests will
run")
+ def test_required_pyarrow_pandas_not_installed(self):
+ # This is only to provide a output when skipped to show that the Arrow
tests will run
+ pass
+
+ @unittest.skipIf(not have_pandas or not have_pyarrow,
+ "Required PyArrow and Pandas not found, Arrow tests will
not run")
+ def test_required_pyarrow_pandas_installed(self):
+ # This is only to provide a output when skipped to show that the Arrow
tests will not run
+ pass
+
+
@unittest.skipIf(
not have_pandas or not have_pyarrow,
pandas_requirement_message or pyarrow_requirement_message)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]