Merge pull request #9149 from Vijay-Arora/main
This commit is contained in:
commit
b5ec092525
1
AUTHORS
1
AUTHORS
|
@ -377,6 +377,7 @@ Victor Maryama
|
|||
Victor Rodriguez
|
||||
Victor Uriarte
|
||||
Vidar T. Fauske
|
||||
Vijay Arora
|
||||
Virgil Dupras
|
||||
Vitaly Lashmanov
|
||||
Vivaan Verma
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Improve Documentation for `caplog.set_level`.
|
|
@ -515,7 +515,9 @@ class LogCaptureFixture:
|
|||
return original_disable_level
|
||||
|
||||
def set_level(self, level: Union[int, str], logger: Optional[str] = None) -> None:
|
||||
"""Set the level of a logger for the duration of a test.
|
||||
"""Set the threshold level of a logger for the duration of a test.
|
||||
|
||||
Logging messages which are less severe than this level will not be captured.
|
||||
|
||||
.. versionchanged:: 3.4
|
||||
The levels of the loggers changed by this function will be
|
||||
|
|
Loading…
Reference in New Issue