

def setUp(self):
    self.orig_ram = RAM._RAM
    RAM._RAM = None
    RAM.configure('')
    self.user = getpass.getuser()
    self.node = platform.node()
    allocator.name = self.node.replace('.', '_')
    self.python = find_python()
    self.cluster = None
    if ((sys.platform == 'win32') or (self.user not in SSH_USERS)):
        self.skip_ssh = True
    else:
        self.skip_ssh = False
    self.machines = []
    self.machines.append({
        'hostname': self.node,
        'python': self.python,
    })
    for allocator in RAM.list_allocators():
        if (allocator.name == 'LocalHost'):
            self.local = allocator
            self.local.max_load = 10
            break
    else:
        raise RuntimeError('No LocalHost allocator!?')

dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/test/test_resource.py TestCase.setUp/VarMisuse@51/62 `self`->`allocator`