def METHOD_NAME(self):
    d = defer.Deferred()
    @defer.inlineCallbacks
    def cb_deferred(*args, **kwargs):
        yield d
        raise RuntimeError('msg')
    def cb(*args, **kwargs):
        raise RuntimeError('msg')
    self.subpt.subscribe(cb_deferred)
    self.subpt.subscribe(cb)
    self.subpt.deliver()
    d.callback(None)
    exceptions = self.subpt.pop_exceptions()
    self.assertEqual(len(exceptions), 2)
    self.assertIsInstance(exceptions[0], RuntimeError)
    self.assertIsInstance(exceptions[1], failure.Failure)
    self.assertEqual(2, len(self.flushLoggedErrors(RuntimeError)))