@contextlib.contextmanager
    def event_loop_until_condition(self, condition, timeout=10.0):
        try:
            yield
            self.event_loop_helper.event_loop_until_condition(
                condition, timeout=timeout)
        except ConditionTimeoutError:
            self.fail('Timed out waiting for condition')
Runs the real Qt event loop until the provided condition evaluates
dataset/ETHPy150Open enthought/pyface/pyface/ui/qt4/util/gui_test_assistant.py/GuiTestAssistant.event_loop_until_condition