'Same as L{test_errorLogWithInnerFrameRef}, plus create a cycle.'

def test_errorLogWithInnerFrameCycle(self):

    def _subErrorLogWithInnerFrameCycle():
        d = defer.Deferred()
        d.addCallback((lambda x, d=d: (1 // 0)))
        d._d = d
        d.callback(1)
    _subErrorLogWithInnerFrameCycle()
    gc.collect()
    self._check()
