#NEWLINE# def no_backend( test_func , backend ) : #NEWLINE# #INDENT# 'Use this decorator to disable test on specified backend.' #NEWLINE# if ( settings . DATABASES [ DEFAULT_DB_ALIAS ] [ 'ENGINE' ] . rsplit ( '.' ) [ ( - 1 ) ] == backend ) : #NEWLINE# #INDENT# @ unittest . skip ( ( "This test is skipped on '%s' backend" % backend ) ) #NEWLINE# def inner( ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# return inner #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return test_func