Skip to content
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

454 Multiple pickle support #460

Merged
merged 2 commits into from
Aug 21, 2024
Merged

454 Multiple pickle support #460

merged 2 commits into from
Aug 21, 2024

Conversation

pjbull
Copy link
Member

@pjbull pjbull commented Aug 15, 2024

Local PR to wrap #454 by @kujenga

Closes #450

kujenga and others added 2 commits August 14, 2024 17:09
This avoids an exception thrown because the _client is not serialized
into the pickled object, and thus when __getstate__ is called the second
time, there is no _client field to delete.

Closes #450
Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request August 15, 2024 00:15 Inactive
Copy link

codecov bot commented Aug 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.9%. Comparing base (a23a38c) to head (16402e5).
Report is 1 commits behind head on master.

Additional details and impacted files
@@          Coverage Diff           @@
##           master    #460   +/-   ##
======================================
  Coverage    93.9%   93.9%           
======================================
  Files          23      23           
  Lines        1660    1661    +1     
======================================
+ Hits         1559    1560    +1     
  Misses        101     101           
Files Coverage Δ
cloudpathlib/cloudpath.py 94.2% <100.0%> (+<0.1%) ⬆️

assert pickled.client == p.client
assert rig.client_class._default_client == pickled.client


Copy link
Member Author

Choose a reason for hiding this comment

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

Moved to test_cloudpath_serialize.py

@pjbull pjbull requested a review from jayqi August 20, 2024 23:53
@pjbull
Copy link
Member Author

pjbull commented Aug 20, 2024

Should be good to go.

@jayqi jayqi merged commit 7cbff39 into master Aug 21, 2024
26 checks passed
@jayqi jayqi deleted the 454-local branch August 21, 2024 22:57
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.

Multiple pickle roundtrip serializations cause KeyError
3 participants