-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-100931: Test all pickle
protocols in test_slice
#100932
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
@@ -133,7 +133,7 @@ def test_pickle(self): | |||
cached_module = sys.modules.get('json') | |||
sys.modules['json'] = self.json | |||
try: | |||
for protocol in range(6): | |||
for protocol in range(pickle.HIGHEST_PROTOCOL + 1): |
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 change is not related, but I think it is minor enough to be included. It just replaces a magic number 6
with more context.
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!
Thanks @sobolevn for the PR, and @AlexWaygood for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Thanks @sobolevn for the PR, and @AlexWaygood for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, @sobolevn and @AlexWaygood, I could not cleanly backport this to |
Sorry @sobolevn and @AlexWaygood, I had trouble checking out the |
Thanks @sobolevn for the PR, and @AlexWaygood for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, @sobolevn and @AlexWaygood, I could not cleanly backport this to |
@sobolevn, are you okay to do the backports? :) |
Yes, will do a bit later. |
…ythonGH-100932). (cherry picked from commit 8795ad1) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
GH-100978 is a backport of this pull request to the 3.10 branch. |
…ythonGH-100932). (cherry picked from commit 8795ad1) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
GH-100979 is a backport of this pull request to the 3.11 branch. |
pickle
protocols coverage intest_slice
#100931