def expect_warnings(*messages, **kw):
 return _expect_warnings(sa_exc.SAWarning, messages, **kw)

def expect_warnings ( * messages , ** kw ) : return _expect_warnings ( sa_exc . SAWarning , messages , ** kw )
context manager which expects one or more warnings .