-
-
Notifications
You must be signed in to change notification settings - Fork 383
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
Tin/py311 #973
Conversation
for more information, see https://pre-commit.ci
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.
so um it doesn't look like we're testing here anything? those asserts needs to be fixed.
also can you pls pull in the changes from #969 so CI actually runs against 3.11? 😅
thanks!
assert getattr(object, "__setstate__", None) is getattr( | ||
C, "__setstate__", None | ||
) |
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.
hm this makes no sense to me…this would pass if both don't exist, and if both are the same thing. this doesn't seem like a good test to me :)
maybe have two asserts, depending on version?
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.
But... that's what we want. If both don't exist, or both exist and are the same, the functionality is correct. Right?
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.
uh…i guess i'll take your word for it? it just seems like there's cases where it passes when it shouldn't 🤔
just merge the other shit in then ¯_(ツ)_/¯
|
||
assert None is getattr(i, "__getstate__", None) | ||
assert None is getattr(i, "__setstate__", None) | ||
assert getattr(object, "__getstate__", None) is getattr( |
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.
same as above
assert None is getattr(i, "__getstate__", None) | ||
assert None is getattr(i, "__setstate__", None) | ||
assert getattr(object, "__getstate__", None) is getattr( | ||
C, "__getstate__", None |
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.
same as above
ah sorry, i missed that! |
* Add support for Python 3.11 Co-authored-by: Tin Tvrtković <tinchester@gmail.com> * Tin/py311 (#973) * Fix test_slots::TestPickle::test_no_getstate_setstate_for_dict_classes * Fix annotations * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Tweak tests for 3.10 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Tweak tests some more Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tin Tvrtković <tinchester@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
No description provided.