def skip_for_dialect(dialect):
 def dec(fn):
  def wrap(self, *args, **kwargs):
   if (self.db_engine.dialect.name == dialect):
    raise unittest.SkipTest(("Not supported on dialect '%s'" % dialect))
   return fn(self, *args, **kwargs)
  return wrap
 return dec

def skip_for_dialect ( dialect ) : def dec ( fn ) : def wrap ( self , * args , ** kwargs ) : if ( self . db_engine . dialect . name == dialect ) : raise unittest . SkipTest ( ( "Not supported on dialect '%s'" % dialect ) ) return fn ( self , * args , ** kwargs ) return wrap return dec
decorator to skip a test for a particular sqlalchemy dialect .