itholic commented on code in PR #39638:
URL: https://github.com/apache/spark/pull/39638#discussion_r1080897030
##########
python/pyspark/testing/utils.py:
##########
@@ -202,3 +175,36 @@ def search_jar(project_relative_path, sbt_jar_name_prefix,
mvn_jar_name_prefix):
raise RuntimeError("Found multiple JARs: %s; please remove all but
one" % (", ".join(jars)))
else:
return jars[0]
+
+
+class PySparkErrorTestUtils:
+ """
+ This util provide functions to accurate and consistent error testing based
on PySpark error classes.
+ """
+
+ def check_error(
Review Comment:
I separated this from `ReusedPySparkTestCase` since some module such as
Spark Connect doesn't want to use `ReusedPySparkTestCase`.
And above all, because technically the `check_error` is more like a utility
for testing error class than `ReusedTestCase`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]