def run(self, result): def do_test(): self.async_run_testcase(result) message_loop.post_task(do_test) message_loop.set_active_test(self, result) message_loop.run_main_loop() message_loop.set_active_test(None, None)
def run(self, result): if sys.platform == 'darwin' and '--objc' in sys.argv: if not self._is_in_slave: return self.run_darwin(result) else: assert message_loop.is_main_loop_running() message_loop.set_active_test(self, result) self.async_run_testcase(result) else: def do_test(): self.async_run_testcase(result) message_loop.post_task(do_test) message_loop.set_active_test(self, result) message_loop.run_main_loop() message_loop.set_active_test(None, None)