Skip to content

MNT Make metadata routing tests thread-safe - #35464

Open
itamarst wants to merge 10 commits into
scikit-learn:mainfrom
itamarst:35313-routing-thread-safety-take-2
Open

itamarst wants to merge 10 commits into
scikit-learn:mainfrom
itamarst:35313-routing-thread-safety-take-2

Conversation

@itamarst

Copy link
Copy Markdown
Contributor

Part of #35313

In this case the tests failed not because the code was thread-safe, but because the testing infrastructure was not thread-safe: inspect.stack() doesn't work when parallelism (threads or processes) are enabled.

So added a new mechanism for tracking the caller, and made the tests no longer skip.

@github-actions github-actions Bot added size/L and removed size/M labels Nov 20, 2026
[free-threaded]
[free-threaded]

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants