forked from pytest-dev/pytest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
assertoutcomes() only accepts plural forms
Fix pytest-dev#6505
- Loading branch information
1 parent
f551cab
commit 57bf8cb
Showing
3 changed files
with
66 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
``Testdir.run().parseoutcomes()`` now always returns the parsed nouns in plural form. | ||
|
||
Originally ``parseoutcomes()`` would always returns the nouns in plural form, but a change | ||
meant to improve the terminal summary by using singular form single items (``1 warning`` or ``1 error``) | ||
caused an unintended regression by changing the keys returned by ``parseoutcomes()``. | ||
|
||
Now the API guarantees to always return the plural form. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters