X Tutup
The Wayback Machine - https://web.archive.org/web/20260214141021/https://github.com/python/cpython/pull/22740
Skip to content

bpo-38320: Clarify that expectedFailure is satisfied by either failur…#22740

Merged
zooba merged 1 commit intopython:masterfrom
iritkatriel:bpo-38320
Oct 19, 2020
Merged

bpo-38320: Clarify that expectedFailure is satisfied by either failur…#22740
zooba merged 1 commit intopython:masterfrom
iritkatriel:bpo-38320

Conversation

@iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Oct 17, 2020

…e or error of the test.

This PR clarifies that a unittest function with the expectedFailure decorator is considered to have passed if the test either fails or errors. The rest of the doc already distinguishes between failure (one of the assert* methods failed) and error (any other exception).

https://bugs.python.org/issue38320

@iritkatriel
Copy link
Member Author

Please add Skip News.

@zooba zooba merged commit fa87482 into python:master Oct 19, 2020
@miss-islington
Copy link
Contributor

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

@miss-islington
Copy link
Contributor

Sorry @iritkatriel and @zooba, I had trouble checking out the 3.9 backport branch.
Please backport using cherry_picker on command line.
cherry_picker fa8748271a61177e9bf609921fa464cc6990478b 3.9

@bedevere-bot
Copy link

GH-22782 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 Oct 19, 2020
…e or error of the test. (pythonGH-22740)

(cherry picked from commit fa87482)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
@miss-islington
Copy link
Contributor

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

@bedevere-bot
Copy link

GH-22783 is a backport of this pull request to the 3.9 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 19, 2020
…e or error of the test. (pythonGH-22740)

(cherry picked from commit fa87482)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
@iritkatriel iritkatriel deleted the bpo-38320 branch October 19, 2020 21:55
miss-islington added a commit that referenced this pull request Nov 18, 2020
…failure or error of the test. (GH-22740) (GH-22783)

(cherry picked from commit fa87482)


Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
miss-islington added a commit that referenced this pull request Nov 18, 2020
…failure or error of the test. (GH-22740) (GH-22782)

(cherry picked from commit fa87482)


Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

X Tutup