class_docstr: A context manager to record raised warnings.
  
  Adapted from `warnings.catch_warnings`.
class_docstr_tok: ["A","context","manager","to","record","raised","warnings",".","Adapted","from","`","warnings.catch_warnings","`","."]
docstr: Clear the list of recorded warnings.
docstr_tok: ["Clear","the","list","of","recorded","warnings","."]
code: def clear(self):
      """Clear the list of recorded warnings."""
      self._list[:] = []
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import inspect
  import re
  import sys
  import warnings
  import six
  import _pytest._code
  from _pytest.deprecated import PYTEST_WARNS_UNKNOWN_KWARGS
  from _pytest.deprecated import WARNS_EXEC
  from _pytest.fixtures import yield_fixture
  from _pytest.outcomes import fail
label_desc: Use image node_id 7 for calling the WarningsRecorder obj's underlying member method code with example usage: obj.clear() without return types