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.
test.support.warnings_helper/WarningsRecorder
WarningsRecorder