'Remove all remaining triggers from the reactor.'

def tearDown(self):

    while self.triggers:
        trigger = self.triggers.pop()
        try:
            reactor.removeSystemEventTrigger(trigger)
        except (ValueError, KeyError):
            pass
