def testBlockTimeout(self):
        d = Deque()
        s = time.time()
        try:
            d.pop(True, 2.0)
            self.fail("expected timeout")
        except TimeoutError:
            pass
        e = time.time()
        self.assertAlmostEqual(2.0, (e - s), places = 1)
dataset/ETHPy150Open concurrence/concurrence/test/testdeque.py/TestDeque.testBlockTimeout/original