Skip to content

bpo-39450 Stripped whitespace before parsing the docstring in TestCase.shortDescription #18175

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 3 commits into from
Feb 3, 2020

Conversation

scirelli
Copy link
Contributor

@scirelli scirelli commented Jan 25, 2020

Pull Request title

Removed whitespace from Testcase shortDescription
https://bugs.python.org/msg360666

[bpo-39450](https://bugs.python.org/issue39450): Stripped whitespace before parsing the docstring in the Lib.unittest.case.TestCase:shortDescription() return.

https://bugs.python.org/issue39450

@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).

CLA Missing

Our records indicate the following people have not signed the CLA:

@scirelli

For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

If you have recently signed the CLA, please wait at least one business day
before our records are updated.

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

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

@scirelli scirelli changed the title Stripped whitespace before parsing the docstring in the Lib.unittest.… [bpo-39450] Stripped whitespace before parsing the docstring in the Lib.unittest.… Jan 25, 2020
@scirelli scirelli changed the title [bpo-39450] Stripped whitespace before parsing the docstring in the Lib.unittest.… bpo-39450 Stripped whitespace before parsing the docstring in TestCase.shortDescription Jan 25, 2020
@scirelli
Copy link
Contributor Author

Well I signed the license agreement it twice now... still not finding me.

@csabella
Copy link
Contributor

It may take a few days for the status to be updated.

@scirelli
Copy link
Contributor Author

Not sure what to do. I signed it twice.

Copy link
Contributor

@cjw296 cjw296 left a comment

Choose a reason for hiding this comment

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

Please add additional test(s) to verify the behaviour you seek, they should be added around here:
https://github.com/python/cpython/blob/master/Lib/unittest/test/test_case.py#L588-L611

@bedevere-bot
Copy link

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.

* Stripped whitespace before parsing the docstring in the Lib.unittest.case.TestCase:shortDescription() return.
* Added unit tests
https://bugs.python.org/msg360666
@scirelli
Copy link
Contributor Author

scirelli commented Feb 1, 2020

Test added

@scirelli scirelli requested a review from cjw296 February 1, 2020 19:41
Copy link
Contributor

@cjw296 cjw296 left a comment

Choose a reason for hiding this comment

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

Please make sure lines are, at most, 79 cars wide.
After that, you need to add a news item as indicated by the bot.

@cjw296 cjw296 merged commit 032de73 into python:master Feb 3, 2020
@miss-islington
Copy link
Contributor

Thanks @scirelli for the PR, and @cjw296 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Thanks @scirelli for the PR, and @cjw296 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 3, 2020
…e.shortDescription (pythonGH-18175)

(cherry picked from commit 032de73)

Co-authored-by: Steve Cirelli <scirelli+git@gmail.com>
@bedevere-bot
Copy link

GH-18321 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 3, 2020
…e.shortDescription (pythonGH-18175)

(cherry picked from commit 032de73)

Co-authored-by: Steve Cirelli <scirelli+git@gmail.com>
@bedevere-bot
Copy link

GH-18322 is a backport of this pull request to the 3.8 branch.

@miss-islington
Copy link
Contributor

Thanks @scirelli for the PR, and @cjw296 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 3, 2020
…e.shortDescription (pythonGH-18175)

(cherry picked from commit 032de73)

Co-authored-by: Steve Cirelli <scirelli+git@gmail.com>
@bedevere-bot
Copy link

GH-18323 is a backport of this pull request to the 3.8 branch.

cjw296 pushed a commit that referenced this pull request Feb 3, 2020
…e.shortDescription (GH-18175) (#18323)

(cherry picked from commit 032de73)

Co-authored-by: Steve Cirelli <scirelli+git@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants