@yield_fixture<EOL>def recwarn():
wrec = WarningsRecorder()<EOL>with wrec:<EOL><INDENT>warnings.simplefilter("<STR_LIT:default>")<EOL>yield wrec<EOL><DEDENT>
Return a :class:`WarningsRecorder` instance that records all warnings emitted by test functions.

    See http://docs.python.org/library/warnings.html for information
    on warning categories.