Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/21141#discussion_r184247014
--- Diff: python/pyspark/sql/tests.py ---
@@ -3021,6 +3021,17 @@ def test_sort_with_nulls_order(self):
class HiveSparkSubmitTests(SparkSubmitTests):
+ @classmethod
+ def setUpClass(cls):
+ import glob
+ from pyspark.find_spark_home import _find_spark_home
+
+ SPARK_HOME = _find_spark_home()
+ filename_pattern = ("sql/hive/target/spark-hive_*-sources.jar")
+ if not glob.glob(os.path.join(SPARK_HOME, filename_pattern)):
+ raise unittest.SkipTest(
--- End diff --
Yea, actually, I think it would be nicer in `setUp` for a better(?) message
.. I replaced `unittest.SkipTest` to `self.skipTest` per
https://docs.python.org/2/library/unittest.html#unittest.SkipTest and
https://docs.python.org/2/library/unittest.html#unittest.TestCase.skipTest
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]