-
Notifications
You must be signed in to change notification settings - Fork 11
ENH: Free-threading support #330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -44,3 +44,29 @@ def modname(self) -> str: # numpydoc ignore=RT01 | |||
def like(self, *others: Backend) -> bool: # numpydoc ignore=PR01,RT01 | |||
"""Check if this backend uses the same module as others.""" | |||
return any(self.modname == other.modname for other in others) | |||
|
|||
def pytest_param(self) -> Any: # type: ignore[explicit-any] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pytest.mark.ParameterSet is not exported
efde2aa
to
bf5b21c
Compare
@@ -23,6 +23,7 @@ classifiers = [ | |||
"Programming Language :: Python :: 3.11", | |||
"Programming Language :: Python :: 3.12", | |||
"Programming Language :: Python :: 3.13", | |||
"Programming Language :: Python :: Free Threading :: 3 - Stable", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The whole library has 1 stateful class, at
, which has trivial state. So no point adding tests beyond those of pytest-run-parallel
.
Where we are thread-unsafe, in lazy_xp_function
, it is clearly documented, so I believe this should qualify for the Stable badge?
pytest-run-parallel
in CImonkeypatch
parameter oflazy_xp_function
in favour of explicitly tagging Dask and JAX withpytest.mark.thread-unsafe
, while leaving the other backends unmarkedlazy_xp_function
is incompatible withpytest-run-parallel
#307Matching scipy PR:
xp
tests scipy/scipy#23143Demo