Skip to content

Fix an invalid assertEqual() call in test_descr.py#15318

Merged
pablogsal merged 1 commit into
python:masterfrom
ZackerySpytz:wrong-assertEqual
Aug 26, 2019
Merged

Fix an invalid assertEqual() call in test_descr.py#15318
pablogsal merged 1 commit into
python:masterfrom
ZackerySpytz:wrong-assertEqual

Conversation

@ZackerySpytz

Copy link
Copy Markdown
Contributor

It seems that self.fail() was intended, not self.assertEqual().

@bedevere-bot bedevere-bot added tests Tests in the Lib/test dir awaiting review labels Aug 17, 2019
@ZackerySpytz ZackerySpytz changed the title Fix an invalid assertRaises() call in test_descr.py Fix an invalid assertEqual() call in test_descr.py Aug 17, 2019

@tirkarthi tirkarthi 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. The commit 479a7e7 changes raise TestFailed(reason) statements to use self.fail and the check is done correctly test_classmethods. Thanks.

@pablogsal pablogsal merged commit 6b2e325 into python:master Aug 26, 2019
@miss-islington

Copy link
Copy Markdown
Contributor

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

@bedevere-bot

Copy link
Copy Markdown

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 26, 2019
(cherry picked from commit 6b2e325)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 26, 2019
(cherry picked from commit 6b2e325)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
@bedevere-bot

Copy link
Copy Markdown

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

@pablogsal

Copy link
Copy Markdown
Member

Thanks, @ZackerySpytz for the PR!

miss-islington added a commit that referenced this pull request Aug 26, 2019
(cherry picked from commit 6b2e325)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
miss-islington added a commit that referenced this pull request Aug 26, 2019
(cherry picked from commit 6b2e325)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip issue skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants