'Verify that when a L{Deferred} with no references to it is fired,
the logged message does not contain a repr of the failure object.'

def test_errorLogNoRepr(self):

    defer.Deferred().addCallback((lambda x: (1 // 0))).callback(1)
    gc.collect()
    self._check()
    self.assertEqual(2, len(self.c))
    msg = log.textFromEventDict(self.c[(-1)])
    expected = 'Unhandled    Error\nTraceback    '
    self.assertTrue(msg.startswith(expected), 'Expected    message    starting    with:    {0!r}'.format(expected))
