-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase #121071
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
gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase #121071
Conversation
skirpichev
commented
Jun 27, 2024
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: Add assertFloatsAreIdentical/assertComplexAreIdentical to unittest (or kwarg to assertEqual)? #121039
This comment was marked as outdated.
This comment was marked as outdated.
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.
Seems like a good refactoring, thanks!
Build failure is not related and is reported here #121065 |
There are more cases, which could be changed, some were mentioned in the issue. But I'm not sure it worth - stopping reinvent the wheel in new tests seems enough. |
Unfortunately, #120894 was merged first. Yet one place to refactor, fixed. |
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.
I think that Cases in |
Yeah, added this.
Some seems mechanical too (assertEqualSign helper). But I'm not sure if this worth it. |
Thanks @skirpichev for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Thanks @skirpichev for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, @skirpichev and @serhiy-storchaka, I could not cleanly backport this to
|
Sorry, @skirpichev and @serhiy-storchaka, I could not cleanly backport this to
|
I'm working on backports. |
….support.testcase (pythonGH-121071) (cherry picked from commit 8ef8354) Co-authored-by: Sergey B Kirpichev <[email protected]>
GH-123840 is a backport of this pull request to the 3.13 branch. |
GH-123841 is a backport of this pull request to the 3.12 branch. |