'BlockingConnection.remove_timeout from timeout callback'

def test(self):

    connection = self._connect()
    timer_id1 = connection.add_timeout(5, (lambda : (0 / 0)))
    rx_timer2 = []
    def on_timer2():
        connection.remove_timeout(timer_id1)
        connection.remove_timeout(timer_id2)
        rx_timer2.append(1)
    timer_id2 = connection.add_timeout(0, on_timer2)
    while (not rx_timer2):
        connection.process_data_events(time_limit=None)
    self.assertNotIn(timer_id1, connection._impl.ioloop._poller._timeouts)
    self.assertFalse(connection._ready_events)
