zhengruifeng opened a new pull request, #55560:
URL: https://github.com/apache/spark/pull/55560

   ### What changes were proposed in this pull request?
   
   Adds the standard `if __name__ == "__main__"` block to 
`python/pyspark/sql/tests/connect/test_session.py`, matching the convention 
used by every other `test_*.py` module in the same directory (e.g., 
`test_connect_basic.py`):
   
   ```python
   if __name__ == "__main__":
       from pyspark.testing import main
   
       main()
   ```
   
   ### Why are the changes needed?
   
   Without the block, this file cannot be invoked directly via `python 
python/pyspark/sql/tests/connect/test_session.py`, unlike its siblings. It is 
the only `test_*.py` file under `python/pyspark/**/tests/` missing this block.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Pure addition; the appended block is byte-identical to the pattern used by 
sibling files such as `test_connect_basic.py`. Verified the module still parses 
with `python -c "import ast; 
ast.parse(open('python/pyspark/sql/tests/connect/test_session.py').read())"`.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (claude-opus-4-7)


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