def METHOD_NAME(self):
    x = Timer()
    x.GreenletExit = KeyError
    entry = Mock()
    g = x._enter(1, 0, entry)
    assert x.queue
    x._entry_exit(g, entry)
    g.wait.side_effect = KeyError()
    x._entry_exit(g, entry)
    entry.cancel.assert_called_with()
    assert not x._queue
    x._queue.add(g)
    x.clear()
    x._queue.add(g)
    g.cancel.side_effect = KeyError()
    x.clear()