Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support Python 3.14#84

Merged
ngoldbaum merged 7 commits into
Quansight-Labs:mainfrom
ngoldbaum:3.14-support
Jul 22, 2025
Merged

Support Python 3.14#84
ngoldbaum merged 7 commits into
Quansight-Labs:mainfrom
ngoldbaum:3.14-support

Conversation

@ngoldbaum
Copy link
Copy Markdown
Collaborator

@ngoldbaum ngoldbaum commented Jun 30, 2025

Opening as a draft because of the hacky detection for suppress_warnings. I'm also not completely sure that the SciPy unit tests safely finish running with this PR applied.

EDIT: maybe adding numpy as a test dependency is overkill?

@ngoldbaum
Copy link
Copy Markdown
Collaborator Author

FWIW, I've been tweaking and running the SciPy tests today and have not seen a single case where a test involving warnings running in parallel fails. I think pytest.warns is probably thread-safe in 3.14!

@ngoldbaum ngoldbaum marked this pull request as ready for review July 21, 2025 21:03
@ngoldbaum
Copy link
Copy Markdown
Collaborator Author

I ended up punting on the numpy test utility detection. In practice only numpy and scipy used the unsafe functions and we've already migrated both libraries away.

This is ready for review now.

Copy link
Copy Markdown
Contributor

@lysnikolaou lysnikolaou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Left some comments inline. Can we also add CI for 3.14-dev?

Comment thread README.md Outdated
Comment thread src/pytest_run_parallel/thread_unsafe_detection.py Outdated
Comment thread src/pytest_run_parallel/plugin.py Outdated
Comment thread tests/test_thread_unsafe_detection.py Outdated
@ngoldbaum
Copy link
Copy Markdown
Collaborator Author

Ah I guess we need to switch back to setup-python instead of relying on uv...

Copy link
Copy Markdown
Contributor

@lysnikolaou lysnikolaou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Great work!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants