-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
Enable stateful tests for LocalStore #2804
base: main
Are you sure you want to change the base?
Conversation
38b17c2
to
2ef7a4d
Compare
2ef7a4d
to
4571884
Compare
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.
👍 great that the slow tests aren't running on all the test runs now! I left some comments/requests for updates/questions inline.
@@ -209,7 +210,7 @@ def basic_indices(draw: st.DrawFn, *, shape: tuple[int], **kwargs: Any) -> Any: | |||
|
|||
|
|||
def key_ranges( | |||
keys: SearchStrategy = node_names, max_size: int | None = None | |||
keys: SearchStrategy = node_names, max_size: int = sys.maxsize |
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.
This is part of our public API, so changing the default here is an API change. What was the motivation for changing it - does hypothesis not work well with max_value=None
?
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.
Cleans up the use of min
below, that's all.
Also restrict stateful tests to slow hypothesis CI workflow to speed up the CI a bit (cc @dstansby)
Seems to work:
SKIPPED [6] tests/test_store/test_stateful.py: need --run-slow-hypothesis option to run
Also fixes the LocalStore stateful test
TODO:
docs/user-guide/*.rst
changes/