def setUp(self): try: self.xr = __builtin__.xrange delattr(__builtin__, 'xrange') except AttributeError: self.xr = None helpers.reload(board)
def setUp(self): self.stdout = sys.stdout self.output = {} sys.stdout = helpers.DevNull(self.output) sys.modules['argparse'] = None helpers.reload(ui) ui.debug = True def system_interrupt(*args): raise KeyboardInterrupt() os.system = system_interrupt
def setUp(self): sys.modules['termios'] = None sys.modules['msvcrt'] = helpers.FakeMsvcrt() helpers.reload(keypress)
def setUp(self): sys.modules['collections'] = None sys.modules['ordereddict'] = fake_ordereddict helpers.reload(souputils)