Skip to content

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