PyDocs

Nav

Development Tools

WarningsRecorder

  • WarningsRecorder(warnings_list)
Class used to record warnings for unit tests. Wraps the warnings list returned by warnings.catch_warnings() when recording is enabled. check_warnings() returns an instance of this class.
Members of WarningsRecorder

r

reset
Discard previously recorded warnings from the recorder’s view.

w

warnings
A list of warnings recorded since the recorder was created or last reset.
0 Examples
No examples for test.support.warnings_helper/WarningsRecorder.
See Also
No see-alsos for test.support.warnings_helper/WarningsRecorder
0 Notes
No notes for WarningsRecorder