def emits_warning(*messages):
    'Decorator form of expect_warnings().\n\n    Note that emits_warning does **not** assert that the warnings\n    were in fact seen.\n\n    '

    @decorator
    def decorate(fn, *args, **kw):
        with expect_warnings(*messages, assert_=False):
            return fn(*args, **kw)
    return decorate
Decorator form of expect_warnings().

Note that emits_warning does **not** assert that the warnings
were in fact seen.
def emits_warning(*messages):
    'Decorator form of expect_warnings().\n\n    Note that emits_warning does **not** assert that the warnings\n    were in fact seen.\n\n    '

    @decorator
    def decorate(fn, *args, **kw):
        with expect_warnings(*messages, assert_=False):
            return fn(*args, **kw)
    return decorate