'C{Deferred.errback()} creates a failure from the current Python
exception.  When Deferred.debug is not set no globals or locals are
captured in that failure.'

def test_errbackWithNoArgsNoDebug(self):

    defer.setDebugging(False)
    d = defer.Deferred()
    l = []
    exc = GenericError('Bang')
    try:
        raise exc
    except:
        d.errback()
    d.addErrback(l.append)
    fail = l[0]
    self.assertEqual(fail.value, exc)
    (localz, globalz) = fail.frames[0][(-2):]
    self.assertEqual([], localz)
    self.assertEqual([], globalz)
