def testing_warn(msg, stacklevel=3):
 filename = 'sqlalchemy.testing.warnings'
 lineno = 1
 if isinstance(msg, util.string_types):
  warnings.warn_explicit(msg, sa_exc.SAWarning, filename, lineno)
 else:
  warnings.warn_explicit(msg, filename, lineno)

def testing_warn ( msg , stacklevel = 3 ) : filename = 'sqlalchemy.testing.warnings' lineno = 1 if isinstance ( msg , util . string_types ) : warnings . warn_explicit ( msg , sa_exc . SAWarning , filename , lineno ) else : warnings . warn_explicit ( msg , filename , lineno )
replaces sqlalchemy .