def expect_warnings(*messages, **kw):
    'Context manager which expects one or more warnings.\n\n    With no arguments, squelches all SAWarning and RemovedIn20Warning emitted via\n    sqlalchemy.util.warn and sqlalchemy.util.warn_limited.   Otherwise\n    pass string expressions that will match selected warnings via regex;\n    all non-matching warnings are sent through.\n\n    The expect version **asserts** that the warnings were in fact seen.\n\n    Note that the test suite sets SAWarning warnings to raise exceptions.\n\n    '
    return _expect_warnings((sa_exc.RemovedIn20Warning, sa_exc.SAWarning), messages, **kw)
Context manager which expects one or more warnings.

With no arguments, squelches all SAWarning and RemovedIn20Warning emitted via
sqlalchemy.util.warn and sqlalchemy.util.warn_limited.   Otherwise
pass string expressions that will match selected warnings via regex;
all non-matching warnings are sent through.

The expect version **asserts** that the warnings were in fact seen.

Note that the test suite sets SAWarning warnings to raise exceptions.
def expect_warnings(*messages, **kw):
    'Context manager which expects one or more warnings.\n\n    With no arguments, squelches all SAWarning and RemovedIn20Warning emitted via\n    sqlalchemy.util.warn and sqlalchemy.util.warn_limited.   Otherwise\n    pass string expressions that will match selected warnings via regex;\n    all non-matching warnings are sent through.\n\n    The expect version **asserts** that the warnings were in fact seen.\n\n    Note that the test suite sets SAWarning warnings to raise exceptions.\n\n    '
    return _expect_warnings((sa_exc.RemovedIn20Warning, sa_exc.SAWarning), messages, **kw)