def return_code_in_result(self):
            runner = self._runner(exits=17)
            r = runner.run(_, warn=True)
            eq_(r.return_code, 17)
            eq_(r.exited, 17)
Result has .return_code (and .exited) containing exit code int
dataset/ETHPy150Open pyinvoke/invoke/tests/runners.py/Runner_.return_value.return_code_in_result