def uses_deprecated(*messages):
    'Mark a test as immune from fatal deprecation warnings.\n\n    With no arguments, squelches all SADeprecationWarning failures.\n    Or pass one or more strings; these will be matched to the root\n    of the warning description by warnings.filterwarnings().\n\n    As a special case, you may pass a function name prefixed with //\n    and it will be re-written as needed to match the standard warning\n    verbiage emitted by the sqlalchemy.util.deprecated decorator.\n\n    Note that uses_deprecated does **not** assert that the warnings\n    were in fact seen.\n\n    '

    @decorator
    def decorate(fn, *args, **kw):
        with expect_deprecated(*messages, assert_=False):
            return fn(*args, **kw)
    return decorate
Mark a test as immune from fatal deprecation warnings.

With no arguments, squelches all SADeprecationWarning failures.
Or pass one or more strings; these will be matched to the root
of the warning description by warnings.filterwarnings().

As a special case, you may pass a function name prefixed with //
and it will be re-written as needed to match the standard warning
verbiage emitted by the sqlalchemy.util.deprecated decorator.

Note that uses_deprecated does **not** assert that the warnings
were in fact seen.
def uses_deprecated(*messages):
    'Mark a test as immune from fatal deprecation warnings.\n\n    With no arguments, squelches all SADeprecationWarning failures.\n    Or pass one or more strings; these will be matched to the root\n    of the warning description by warnings.filterwarnings().\n\n    As a special case, you may pass a function name prefixed with //\n    and it will be re-written as needed to match the standard warning\n    verbiage emitted by the sqlalchemy.util.deprecated decorator.\n\n    Note that uses_deprecated does **not** assert that the warnings\n    were in fact seen.\n\n    '

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