@classmethod<EOL><INDENT>@patch('<STR_LIT>')<EOL>@patch('<STR_LIT>', new_callable=StringIO)<EOL>@patch('<STR_LIT>')<EOL>def setUpClass(cls, pool_mock, stdout_mock, exit_mock):<DEDENT>
<EOL>cls._exit = exit_mock<EOL>pool_mock.return_value = ThreadPoolExecutor()<EOL>with patch('<STR_LIT>', ['<STR_LIT>', '<STR_LIT>']):<EOL><INDENT>main()<EOL><DEDENT>output = stdout_mock.getvalue()<EOL>cls._output = output.split('<STR_LIT:\n>')[:-<NUM_LIT:1>]<EOL>
Get yala's output to be used in tests.

        As coverage outputs random results with --concurrency=multiprocessing,
        we use Python threads instead.