#NEWLINE# def skip_unless_xattr( test ) : #NEWLINE# #INDENT# 'Skip decorator for tests that require functional extended attributes' #NEWLINE# ok = can_xattr ( ) #NEWLINE# msg = 'no non-broken extended attribute support' #NEWLINE# return ( test if ok else unittest . skip ( msg ) ( ok ) )