def test_timeoutRaises(self):
        @self.eventloop.wait_for(timeout=0.5)
        def times_out():
            return Deferred().addErrback(lambda f: f.trap(CancelledError))

        start = time.time()
        self.assertRaises(TimeoutError, times_out)
        self.assertTrue(abs(time.time() - start - 0.5) < 0.1)
SelectConnection:epoll
dataset/ETHPy150Open itamarst/crochet/crochet/tests/test_api.py/WaitForTests.test_timeoutRaises--crossover with--dataset/ETHPy150Open pika/pika/tests/acceptance/async_test_base.py/AsyncAdapters.select_epoll_test