Skip to content

[SPARK-47753][PYTHON][CONNECT][TESTS] Make pyspark.testing compatible with pyspark-connect#45916

Closed
HyukjinKwon wants to merge 2 commits into
apache:masterfrom
HyukjinKwon:SPARK-47753
Closed

[SPARK-47753][PYTHON][CONNECT][TESTS] Make pyspark.testing compatible with pyspark-connect#45916
HyukjinKwon wants to merge 2 commits into
apache:masterfrom
HyukjinKwon:SPARK-47753

Conversation

@HyukjinKwon

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This PR proposes to make pyspark.testing compatible with pyspark-connect by using noop context manager contextlib.nullcontext instead of QuietTest which requires JVM access.

Why are the changes needed?

In order for pyspark-connect to work without classic PySpark packages and dependencies. Also, the logs are hidden as it's written to the separate file so it is actually already quiet.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Yes, at #45870. Once CI is setup there, it will be tested there properly.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions Bot added the PYTHON label Apr 7, 2024
@HyukjinKwon HyukjinKwon changed the title [SPARK-47753][PYTHON][TESTS] Make pyspark.testing compatible with pyspark-connect [SPARK-47753][PYTHON][CONNECT][TESTS] Make pyspark.testing compatible with pyspark-connect Apr 7, 2024
@HyukjinKwon

Copy link
Copy Markdown
Member Author

Merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants