Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

skirpichev
Copy link
Contributor

@skirpichev skirpichev commented Jun 27, 2024

@skirpichev

This comment was marked as outdated.

Copy link
Member

@sobolevn sobolevn left a 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!

@sobolevn
Copy link
Member

Build failure is not related and is reported here #121065

@skirpichev
Copy link
Contributor 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
Contributor Author

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

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

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
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
Contributor 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
32 checks passed
@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

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

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

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

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
Contributor 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 <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Sep 8, 2024

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
Copy link

bedevere-app bot commented Sep 8, 2024

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 <[email protected]>
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 <[email protected]>

* +1
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