def emits_warning_on(db, *warnings):
 spec = db_spec(db)
 @decorator
 def decorate(fn, *args, **kw):
  if isinstance(db, util.string_types):
   if (not spec(config._current)):
    return fn(*args, **kw)
   else:
    wrapped = emits_warning(*warnings)(fn)
    return wrapped(*args, **kw)
  elif (not _is_excluded(*db)):
   return fn(*args, **kw)
  else:
   wrapped = emits_warning(*warnings)(fn)
   return wrapped(*args, **kw)
 return decorate

def emits_warning_on ( db , * warnings ) : spec = db_spec ( db ) @ decorator def decorate ( fn , * args , ** kw ) : if isinstance ( db , util . string_types ) : if ( not spec ( config . _current ) ) : return fn ( * args , ** kw ) else : wrapped = emits_warning ( * warnings ) ( fn ) return wrapped ( * args , ** kw ) elif ( not _is_excluded ( * db ) ) : return fn ( * args , ** kw ) else : wrapped = emits_warning ( * warnings ) ( fn ) return wrapped ( * args , ** kw ) return decorate
mark a test as emitting a warning on a specific dialect .