def setUp(self): # nosetests captures sys.stdout, but so do we self.stdout = sys.stdout sys.stdout = output._logger = output._OutputLogger(stdout=self.stdout)
def setUp(self): self.old_stdout = sys.stdout self.old_logger = output._logger sys.stdout = output._logger = output._OutputLogger() output.on()