8000 Strengthen pickling test and fix ZipStore __getstate__() by maxrjones · Pull Request #2807 · zarr-developers/zarr-python · GitHub
[go: up one dir, main page]

Skip to content

Strengthen pickling test and fix ZipStore __getstate__() #2807

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

Merged
merged 3 commits into from
Feb 7, 2025

Conversation

maxrjones
Copy link
Member
@maxrjones maxrjones commented Feb 6, 2025

It's important for stores that manually implement __getstate__ and __setstate__ that the store behavior is tested beyond a simply equality check. This is motivated by #1661, where I first added incorrect serialization functionality even though it passed this test. This PR adds a simple set/get check on the serialization test and exposes an issue with ZipStore.

TODO:

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/user-guide/*.rst
  • Changes documented as a new file in changes/
  • GitHub Actions have all passed
  • Test coverage is 100% (Codecov passes)

@github-actions github-actions bot added the needs release notes Automatically applied to PRs which haven't added release notes label Feb 6, 2025
@maxrjones maxrjones changed the title Strengthen serialization test Strengthen serialization test and fix ZipStore __getstate__() Feb 6, 2025
@github-actions github-actions bot removed the needs release notes Automatically applied to PRs which haven't added release notes label Feb 6, 2025
@maxrjones maxrjones changed the title Strengthen serialization test and fix ZipStore __getstate__() Strengthen pickling test and fix ZipStore __getstate__() Feb 6, 2025
@jhamman jhamman merged commit 57181c9 into zarr-developers:main Feb 7, 2025
30 checks passed
@maxrjones maxrjones deleted the test-serializable branch February 7, 2025 19:05
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.

3 participants
0