-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
9 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 |
---|---|---|
@@ -1 +1,7 @@ | ||
Set :func:`warns` to re-emit unmatched warnings when the context closes | ||
:func:`pytest.warns <warns>` now re-emits unmatched warnings when the context | ||
closes -- previously it would consume all warnings, hiding those that were not | ||
matched by the function. | ||
|
||
While this is a new feature, we decided to announce this as a breaking change | ||
because many test suites are configured to error-out on warnings, and will | ||
therefore fail on the newly-re-emitted warnings. |
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