def test_logit(self):
    defer.fail(ValueError('6 is a bad value'))
gc.collect()
self.assertEqual(self.flushLoggedErrors(ValueError), 1)
How can Twisted Deferred errors without errbacks be tested with trial?