Skip to content

gh-122196: Clarify, reorder language for TestCase(object) #24465

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

mavaddat
Copy link

@mavaddat mavaddat commented Feb 6, 2021

The former docstring inappropriately uses the term 'fixture' before introducing or defining the term. Therefore, I have re-arranged the description so that the definition comes before the usage. Additional semantic changes made to be clearer, more understandable, and linear.

The former docstring inappropriately uses the term 'fixture' before introducing or defining the term. Therefore, I have re-arranged the description so that the definition comes before the usage. Additional semantic changes made to be clearer, more understandable, and linear.
@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA).

Recognized GitHub username

We couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames:

@mavaddat

This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

You can check yourself to see if the CLA has been received.

Thanks again for the contribution, we look forward to reviewing it!

@mavaddat
Copy link
Author

mavaddat commented Feb 6, 2021

Recognized GitHub username

We couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames:

@mavaddat

I did not know about this requirement until I made the pull-request. Thank you to the bot for notifying me. 🤖 I have now registered and followed the steps outlined in the CPython devguide as indicated.

Contributor Form Received
Is Committer

@github-actions
Copy link

github-actions bot commented Mar 9, 2021

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Mar 9, 2021
@mavaddat mavaddat marked this pull request as draft March 11, 2021 18:17
@CoolCat467
Copy link

@mavaddat CLA signed tag added

@mavaddat mavaddat marked this pull request as ready for review December 14, 2021 21:27
@mavaddat
Copy link
Author

Is this PR still relevant?

Copy link
Contributor

@MaxwellDupre MaxwellDupre left a comment

Choose a reason for hiding this comment

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

Looks ok

@github-actions github-actions bot removed the stale Stale PR or inactive for long period of time. label Aug 4, 2022
Copy link

@CoolCat467 CoolCat467 left a comment

Choose a reason for hiding this comment

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

Makes sense

@bedevere-app
Copy link

bedevere-app bot commented Jul 23, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@AA-Turner AA-Turner changed the title Clarify, reorder language for TestCase(object) gh-122196: Clarify, reorder language for TestCase(object) Jul 23, 2024
@AA-Turner AA-Turner added skip news needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Jul 23, 2024
Comment on lines 365 to 369
Test authors should subclass this TestCase class for their own tests.
Testing code may be placed in subclass method named 'runTest';
alternatively, invoke unittest.main() from the subclass's "__name__ guard"
section to run all methods defined in the test class. To achieve more
precise subclass test invocation see below (viz., constructor kwarg).
Copy link
Member

Choose a reason for hiding this comment

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

The runTest form is far rarer, should we cover it second?

Copy link
Author

Choose a reason for hiding this comment

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

I rewrote the docs according to your suggestion.

@bedevere-app
Copy link

bedevere-app bot commented Jul 23, 2024

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

mavaddat and others added 4 commits July 23, 2024 21:44
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Re-order recommendations as suggested by python#24465 (comment)
@tomasr8 tomasr8 removed the needs backport to 3.12 only security fixes label Apr 10, 2025
@python-cla-bot
Copy link

python-cla-bot bot commented Apr 18, 2025

The following commit authors need to sign the Contributor License Agreement:

CLA signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants