

def testBlockTimeout(self):
    d = Deque()
    s = time.time()
    try:
        d.pop(True, 2.0)
        self.fail('expected timeout')
    except TimeoutError:
        pass
    e = time.time()
    s.assertAlmostEqual(2.0, (e - s), places=1)

dataset/ETHPy150Open concurrence/concurrence/test/testdeque.py TestDeque.testBlockTimeout/VarMisuse@61/72 `self`->`s`