rithwik-db commented on code in PR #39146:
URL: https://github.com/apache/spark/pull/39146#discussion_r1056647526


##########
python/pyspark/ml/torch/tests/test_distributor.py:
##########
@@ -0,0 +1,82 @@
+from pyspark.testing.utils import PySparkTestCase
+from pyspark.ml.torch.distributor import PyTorchDistributor
+from pyspark.sql import SparkSession
+
+# Q: Do you recommend that I use pytest.mark.parametrize? It doesn't seem to 
be used elsewhere in this code...
+class TestPyTorchDistributor(PySparkTestCase):

Review Comment:
   I want to start and stop a SparkSession instance after each test, not when 
the class starts and ends. Correct me if I am wrong, but `ReusedSQLTestCase` 
seems to do the setup and teardown only when a class starts and ends, not 
during each individual test.



-- 
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]

Reply via email to