HyukjinKwon commented on code in PR #37629:
URL: https://github.com/apache/spark/pull/37629#discussion_r957207594
##########
python/pyspark/broadcast.py:
##########
@@ -246,9 +349,20 @@ def clear(self) -> None:
self._registry.clear()
-if __name__ == "__main__":
+def _test() -> None:
import doctest
+ from pyspark.sql import SparkSession
+ import pyspark.broadcast
+
+ globs = pyspark.broadcast.__dict__.copy()
+ spark = SparkSession.builder.master("local[4]").appName("pyspark.broadcast
tests").getOrCreate()
Review Comment:
```suggestion
spark = SparkSession.builder.master("local[4]").appName("broadcast
tests").getOrCreate()
```
to be consistent
--
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]