def test_callInThread(self):
        def cb(ign):
            waiter = threading.Event()
            result = []
            def threadedFunc():
                result.append(threadable.isInIOThread())
                waiter.set()

            reactor.callInThread(threadedFunc)
            waiter.wait(120)
            if not waiter.isSet():
                self.fail("Timed out waiting for event.")
            else:
                self.assertEqual(result, [False])
        return self._waitForThread().addCallback(cb)
*
dataset/ETHPy150Open twisted/twisted/twisted/test/test_threads.py/ReactorThreadsTests.test_callInThread--crossover with--dataset/ETHPy150Open anandology/pyjamas/library/gwt/chart/Axis.py/Axis.formatNumberAsTickLabel