Skip to content

Conversation

@gaogaotiantian
Copy link
Contributor

What changes were proposed in this pull request?

Instead of monkeypatch unittest.main, we just check it in unittestutils.py.

Why are the changes needed?

Monkeypatch in general is discouraged. If we can do it in a normal way, we should.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Local test_fail_in_set_up_class passed. Rest wait for CI.

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

No

@github-actions
Copy link

github-actions bot commented Jan 7, 2026

JIRA Issue Information

=== Test SPARK-54950 ===
Summary: Remove unittest.main monkeypatch magic
Assignee: None
Status: Open
Affected: ["4.2.0"]


This comment was automatically generated by GitHub Actions

@github-actions github-actions bot added the PYTHON label Jan 7, 2026
@HyukjinKwon
Copy link
Member

Merged to master.

@gaogaotiantian gaogaotiantian deleted the move-unittest-magic branch January 8, 2026 00:41
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