Skip to content

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

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 1 commit into from
Oct 19, 2020

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 <[email protected]>
@zooba zooba added needs backport to 3.9 only security fixes and removed needs backport to 3.9 only security fixes labels 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.9.
🐍🍒⛏🤖

@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Oct 19, 2020
@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 <[email protected]>
@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 <[email protected]>
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 <[email protected]>
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