File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def assert_produces_warning(
33
33
check_stacklevel : bool = True ,
34
34
raise_on_extra_warnings : bool = True ,
35
35
match : str | tuple [str | None , ...] | None = None ,
36
- must_find_all_warnings : bool = False ,
36
+ must_find_all_warnings : bool = True ,
37
37
) -> Generator [list [warnings .WarningMessage ], None , None ]:
38
38
"""
39
39
Context manager for running code expected to either raise a specific warning,
@@ -74,7 +74,7 @@ class for all warnings. To raise multiple types of exceptions,
74
74
`expected_warning`. If additionally `must_find_all_warnings` is
75
75
True, each expected warning's message gets matched with a respective
76
76
match. Otherwise, multiple values get treated as an alternative.
77
- must_find_all_warnings : bool, default False
77
+ must_find_all_warnings : bool, default True
78
78
If True and `expected_warning` is a tuple, each expected warning
79
79
type must get encountered. Otherwise, even one expected warning
80
80
results in success.
You can’t perform that action at this time.
0 commit comments