This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 0b7f83455531 [SPARK-55613][PYTHON][TESTS] Add main block for tests 
that are missing it
0b7f83455531 is described below

commit 0b7f83455531bd143bd80a143597c6111aacb335
Author: Tian Gao <[email protected]>
AuthorDate: Mon Feb 23 07:21:48 2026 +0900

    [SPARK-55613][PYTHON][TESTS] Add main block for tests that are missing it
    
    ### What changes were proposed in this pull request?
    
    Add main block for tests that are missing it.
    
    ### Why are the changes needed?
    
    They are not executed by our CI now because we run the script as a module 
directly.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Locally confirmed that test runs.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #54388 from gaogaotiantian/add-main-block.
    
    Authored-by: Tian Gao <[email protected]>
    Signed-off-by: Hyukjin Kwon <[email protected]>
---
 python/pyspark/sql/tests/connect/client/test_artifact.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/python/pyspark/sql/tests/connect/client/test_artifact.py 
b/python/pyspark/sql/tests/connect/client/test_artifact.py
index 528fc10bbb28..d5eb81061d33 100644
--- a/python/pyspark/sql/tests/connect/client/test_artifact.py
+++ b/python/pyspark/sql/tests/connect/client/test_artifact.py
@@ -441,3 +441,9 @@ class ArtifactTests(ReusedConnectTestCase, 
ArtifactTestsMixin):
                 self.artifact_manager.add_artifacts(
                     os.path.join(d, "not_existing"), file=True, pyfile=False, 
archive=False
                 )
+
+
+if __name__ == "__main__":
+    from pyspark.testing import main
+
+    main()


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to