This is an automated email from the ASF dual-hosted git repository.
xinrong 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 45440905e52f [SPARK-53284][PS] Adjust imports of Spark config in tests
45440905e52f is described below
commit 45440905e52f34445377cdf3a9ab7e0acc156f21
Author: Xinrong Meng <[email protected]>
AuthorDate: Thu Aug 14 17:40:13 2025 -0700
[SPARK-53284][PS] Adjust imports of Spark config in tests
### What changes were proposed in this pull request?
Adjust imports of Spark config in tests
### Why are the changes needed?
Imports consistency
Part of https://issues.apache.org/jira/browse/SPARK-52984
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Existing tests
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #52030 from xinrong-meng/adjust_imports.
Authored-by: Xinrong Meng <[email protected]>
Signed-off-by: Xinrong Meng <[email protected]>
---
python/pyspark/pandas/tests/indexes/test_conversion.py | 4 ++--
python/pyspark/testing/pandasutils.py | 5 +----
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/python/pyspark/pandas/tests/indexes/test_conversion.py
b/python/pyspark/pandas/tests/indexes/test_conversion.py
index c6c250edea28..3ccc9697070f 100644
--- a/python/pyspark/pandas/tests/indexes/test_conversion.py
+++ b/python/pyspark/pandas/tests/indexes/test_conversion.py
@@ -20,8 +20,8 @@ from datetime import datetime
import pandas as pd
from pyspark import pandas as ps
-from pyspark.testing.pandasutils import (
- PandasOnSparkTestCase,
+from pyspark.testing.pandasutils import PandasOnSparkTestCase
+from pyspark.pandas.utils import (
SPARK_CONF_ARROW_ENABLED,
SPARK_CONF_PANDAS_STRUCT_MODE,
)
diff --git a/python/pyspark/testing/pandasutils.py
b/python/pyspark/testing/pandasutils.py
index 67441f3c97ef..e53240586d59 100644
--- a/python/pyspark/testing/pandasutils.py
+++ b/python/pyspark/testing/pandasutils.py
@@ -36,10 +36,7 @@ import pyspark.pandas as ps
from pyspark.pandas.frame import DataFrame
from pyspark.pandas.indexes import Index
from pyspark.pandas.series import Series
-from pyspark.pandas.utils import (
- SPARK_CONF_ARROW_ENABLED,
- SPARK_CONF_PANDAS_STRUCT_MODE, # noqa: F401
-)
+from pyspark.pandas.utils import SPARK_CONF_ARROW_ENABLED
from pyspark.testing.sqlutils import ReusedSQLTestCase
from pyspark.testing.utils import is_ansi_mode_test
from pyspark.errors import PySparkAssertionError
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]