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

ruifengz 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 a10f32da21b8 [SPARK-51838][PYTHON][TESTS][FOLLWO-UP] Skip 
`test_wildcard_import` in low python versions
a10f32da21b8 is described below

commit a10f32da21b83c10968783819267290e10d95c66
Author: Ruifeng Zheng <ruife...@apache.org>
AuthorDate: Mon Apr 21 10:11:00 2025 +0800

    [SPARK-51838][PYTHON][TESTS][FOLLWO-UP] Skip `test_wildcard_import` in low 
python versions
    
    Skip `test_wildcard_import` in low python versions, to address 
https://github.com/apache/spark/pull/50634
    
    There seems to be a behavior change in different python versions
    
    Closes #50650 from zhengruifeng/test_fix_wildcard.
    
    Authored-by: Ruifeng Zheng <ruife...@apache.org>
    Signed-off-by: Ruifeng Zheng <ruife...@apache.org>
---
 python/pyspark/sql/tests/test_functions.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/python/pyspark/sql/tests/test_functions.py 
b/python/pyspark/sql/tests/test_functions.py
index 01b2149bda45..13b0e09ec86d 100644
--- a/python/pyspark/sql/tests/test_functions.py
+++ b/python/pyspark/sql/tests/test_functions.py
@@ -23,6 +23,7 @@ import io
 from itertools import chain
 import math
 import re
+import sys
 import unittest
 
 from pyspark.errors import PySparkTypeError, PySparkValueError, 
SparkRuntimeException
@@ -90,6 +91,7 @@ class FunctionsTestsMixin:
             expected_missing_in_py, missing_in_py, "Missing functions in 
pyspark not as expected"
         )
 
+    @unittest.skipIf(sys.version_info < (3, 11))
     def test_wildcard_import(self):
         all_set = set(F.__all__)
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to