You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def test_fail(self):
"""
A test which fails in the callback of the returned L{defer.Deferred}.
"""
d = defer.Deferred()
d.addCallback(self._later)
reactor.callLater(0, d.callback, None)
return d
def _later(self, res):
self.fail("I fail later")
twisted.internet.task.deferLater would simplify this a bit.
The text was updated successfully, but these errors were encountered:
src/twisted/trial/test/erroneous.py
has this:twisted.internet.task.deferLater
would simplify this a bit.The text was updated successfully, but these errors were encountered: