-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[4.6.x][backport of PR #6337] Make 'S' and 'F' aliases to 's' and 'f' respectively #7314
Conversation
Alternative PR: #7311. |
N.B. Because there was a conflict during cherry-pick, I had to also absorb a small change related to the error outcome that is present on |
@@ -0,0 +1,3 @@ | |||
Fix summary entries appearing twice when ``f/F`` and ``s/S`` report chars were used at the same time in the ``-r`` command-line option (for example ``-rFf``). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a part of backport
@@ -0,0 +1,9 @@ | |||
Fix ``UnboundLocalError: local variable 'letter' referenced before |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is new
if report.when in ("collect", "setup", "teardown") and outcome == "failed": | ||
outcome = "error" | ||
letter = "E" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This got absorbed from the master
but wasn't a part of the original PR.
fwiw, we have a procedure for backporting patches: https://github.com/pytest-dev/pytest/blob/master/CONTRIBUTING.rst#backporting-bug-fixes-for-the-next-patch-release |
@asottile oh, I didn't know. What do you want me to do exactly? Should I redo it using |
Hi @webknjaz, Our procedure is to use:
I just did that and got some conflicts in Could you try that and see if it works for you? |
This comment has been minimized.
This comment has been minimized.
Also, do I have to follow that branch convention? It doesn't seem important for forks. |
(cherry picked from commit ecd1e43)
80ee5d9
to
1c465bd
Compare
Ah, I didn't realize that cherry-picking merge commits already does the squash. FWIW I've just force-pushed that as suggested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, we appreciate it!
No you are right, it was just a matter of suggesting something given we have a guide. 😁 |
@webknjaz cherry picking a merge commit will choose the diff to the given parent |
@RonnyPfannschmidt yeah, I figured. For some I just thought that it'd cherry-pick series of commits from the incoming branch. |
This is a backport of #6337 (by @nicoddemus) with an extra change
note on top of it. It fixes #7310 and
supersedescloses #7311 (as analternative to a smaller patch as suggested by @RonnyPfannschmidt).
Unless your change is trivial or a small documentation fix (e.g., a typo or reword of a small section) please:
Create a new changelog file in the
changelog
folder, with a name like<ISSUE NUMBER>.<TYPE>.rst
. See changelog/README.rst for details.Write sentences in the past or present tense, examples:
Also make sure to end the sentence with a
.
.Add yourself to
AUTHORS
in alphabetical order.