def skip_unless_has_memory_collection(cls):
 if (platform.system() not in ['Darwin', 'Linux']):
  return unittest.skip('Memory tests only supported on mac/linux.')(cls)
 return cls

def skip_unless_has_memory_collection ( cls ) : if ( platform . system ( ) not in [ 'Darwin' , 'Linux' ] ) : return unittest . skip ( 'Memory tests only supported on mac/linux.' ) ( cls ) return cls
class decorator to skip tests that require memory collection .