Skip to content

gh-99051: remove duplicated test from test_weakref #99052

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

Merged
merged 4 commits into from
Nov 6, 2022

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Nov 3, 2022

Copy link
Contributor

@Jason-Y-Z Jason-Y-Z left a comment

Choose a reason for hiding this comment

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

Given that all Python 3 classes inherit from object by default, this looks good.
A slight comment would be maybe we want to update the test names since we now jump from test_callback_in_cycle_1 to test_callback_in_cycle_3.

@iritkatriel
Copy link
Member

Note that this comment in test_callback_in_cycle_3 becomes obsolete if we merge this as it is now:

"# This one broke the first patch that fixed the last two."

Can you think of more meaningful suffixes for these test names than a number?

Also, maybe remove the (object) in the class definitions in the other tests while we're clearing up old-style classes?

@sobolevn
Copy link
Member Author

sobolevn commented Nov 6, 2022

Can you think of more meaningful suffixes for these test names than a number?

Yes, this is a good suggestion. Thank you.
I've used more semantic names.

Also, maybe remove the (object) in the class definitions in the other tests while we're clearing up old-style classes?

I would prefer to keep it as-is, because there's no semantical difference.
And style-only diffs are not something I would like to see in a git blame :)

Copy link
Member

@iritkatriel iritkatriel left a comment

Choose a reason for hiding this comment

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

Looks good, just one nit about the comment.

@iritkatriel iritkatriel added needs backport to 3.11 only security fixes needs backport to 3.10 only security fixes labels Nov 6, 2022
@iritkatriel iritkatriel merged commit 8463cb5 into python:main Nov 6, 2022
@miss-islington
Copy link
Contributor

Thanks @sobolevn for the PR, and @iritkatriel for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-99170 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Nov 6, 2022
@bedevere-bot
Copy link

GH-99171 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Nov 6, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 6, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 6, 2022
@sobolevn
Copy link
Member Author

sobolevn commented Nov 6, 2022

Thanks again! 👍

miss-islington added a commit that referenced this pull request Nov 6, 2022
(cherry picked from commit 8463cb5)

Co-authored-by: Nikita Sobolev <[email protected]>
miss-islington added a commit that referenced this pull request Nov 6, 2022
(cherry picked from commit 8463cb5)

Co-authored-by: Nikita Sobolev <[email protected]>
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.

5 participants