Skip to content

gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase#121071

Merged
serhiy-storchaka merged 7 commits into
python:mainfrom
skirpichev:num-areidentical-mixin-121039
Sep 8, 2024
Merged

gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase#121071
serhiy-storchaka merged 7 commits into
python:mainfrom
skirpichev:num-areidentical-mixin-121039

Conversation

@skirpichev

@skirpichev skirpichev commented Jun 27, 2024

Copy link
Copy Markdown
Member

@skirpichev

This comment was marked as outdated.

@sobolevn sobolevn left a comment

Copy link
Copy Markdown
Member

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!

@sobolevn

Copy link
Copy Markdown
Member

Build failure is not related and is reported here #121065

@skirpichev

Copy link
Copy Markdown
Member Author

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.

@skirpichev

Copy link
Copy Markdown
Member Author

Unfortunately, #120894 was merged first. Yet one place to refactor, fixed.

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

@serhiy-storchaka

Copy link
Copy Markdown
Member

I think that test_capi/test_getargs.py is a fair case, and pretty simple too.

Cases in test_math.py are more complex.

@skirpichev

Copy link
Copy Markdown
Member Author

I think that test_capi/test_getargs.py is a fair case, and pretty simple too.

Yeah, added this.

Cases in test_math.py are more complex.

Some seems mechanical too (assertEqualSign helper). But I'm not sure if this worth it.

@serhiy-storchaka serhiy-storchaka merged commit 8ef8354 into python:main Sep 8, 2024
@serhiy-storchaka serhiy-storchaka added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Sep 8, 2024
@miss-islington-app

Copy link
Copy Markdown

Thanks @skirpichev for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Thanks @skirpichev for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @skirpichev and @serhiy-storchaka, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 8ef8354ef15e00d484ac2ded9442b789c24b11e0 3.13

@miss-islington-app

Copy link
Copy Markdown

Sorry, @skirpichev and @serhiy-storchaka, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 8ef8354ef15e00d484ac2ded9442b789c24b11e0 3.12

@serhiy-storchaka serhiy-storchaka added the tests Tests in the Lib/test dir label Sep 8, 2024
@skirpichev skirpichev deleted the num-areidentical-mixin-121039 branch September 8, 2024 13:21
@skirpichev

Copy link
Copy Markdown
Member Author

I'm working on backports.

skirpichev added a commit to skirpichev/cpython that referenced this pull request Sep 8, 2024
skirpichev added a commit to skirpichev/cpython that referenced this pull request Sep 8, 2024
….support.testcase (pythonGH-121071)

(cherry picked from commit 8ef8354)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
@bedevere-app

bedevere-app Bot commented Sep 8, 2024

Copy link
Copy Markdown

GH-123840 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Sep 8, 2024
@bedevere-app

bedevere-app Bot commented Sep 8, 2024

Copy link
Copy Markdown

GH-123841 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.12 only security fixes label Sep 8, 2024
vstinner pushed a commit that referenced this pull request Sep 11, 2024
…rt.testcase (GH-121071) (#123841)

* [3.12] gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071)
(cherry picked from commit 8ef8354)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Yhg1s pushed a commit that referenced this pull request Sep 30, 2024
…rt.testcase (GH-121071) (#123840)

* [3.13] gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071)
(cherry picked from commit 8ef8354)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>

* +1
@serhiy-storchaka serhiy-storchaka removed their assignment Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants