def test_get_exception_from_reactor_thread(self):
        f = Future()
        e = Event()

        def get_result():
            f._threading_locals.is_reactor_thread = True
            try:
                f.exception()
            except __HOLE__:
                e.set()

        Thread(target=get_result).start()
        self.assertTrue(e.wait(5), "event was not set")
dataset/ETHPy150Open hazelcast/hazelcast-python-client/tests/future_test.py/FutureTest.test_get_exception_from_reactor_thread