-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
gh-136297: Test all pickle
protocols in test_zoneinfo_property.py
#136298
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
Conversation
for proto in range(pickle.HIGHEST_PROTOCOL + 1): | ||
with self.subTest(proto=proto): | ||
pkl_str = pickle.dumps(zi, proto) | ||
zi_rt = pickle.loads(pkl_str) | ||
|
||
self.assertIs(zi, zi_rt) |
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.
Should not this be in the loop?
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.
Thanks! Hotkey failure 🥲
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.
LGTM. 👍
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…ty.py` (pythonGH-136298) (cherry picked from commit 5de7e3f9739b01ad180fffb242ac57cea930e74d) Co-authored-by: sobolevn <[email protected]>
…ty.py` (pythonGH-136298) (cherry picked from commit 5de7e3f) Co-authored-by: sobolevn <[email protected]>
GH-136311 is a backport of this pull request to the 3.14 branch. |
GH-136312 is a backport of this pull request to the 3.13 branch. |
test_zoneinfo_property.py
misses tests with allpickle
protocols #136297