module documentation

Tests for twisted.internet.inlineCallbacks.

Class BasicTests This test suite tests basic use cases of inlineCallbacks. For more complex tests see e.g. StackedInlineCallbacksTests.
Class CancellationTests Tests for cancellation of Deferreds returned by inlineCallbacks. For each of these tests, let:
Class CancellationTestsStackedType Undocumented
Class ForwardTraceBackTests No class docstring; 5/5 methods documented
Class NonLocalExitTests It's possible for returnValue to be (accidentally) invoked at a stack level below the inlineCallbacks-decorated function which it is exiting. If this happens, returnValue should report useful errors.
Class StackedInlineCallbacksTests We have an optimization that invokes generators directly when an inlineCallbacks-decorated function yields value directly to yield of another inlineCallbacks-decorated function.
Class StopIterationReturnTests On Python 3.4 and newer generator functions may use the return statement with a value, which is attached to the StopIteration exception that is raised.
Exception DontFail Sample exception type.
Exception TerminalException Just a specific exception type for use in inlineCallbacks tests in this file.
Exception TranslatedError Translated exception type when testing an exception translation.
Exception UntranslatedError Untranslated exception type when testing an exception translation.
Function getDivisionFailure Make a Failure of a divide-by-zero error.
Async Function getDivisionFailureCoro Make a coroutine that throws a divide-by-zero error.
Async Function getValueViaCoro Undocumented
Function getValueViaDeferred Undocumented
def getDivisionFailure(msg: str | None = None) -> Failure:

Make a Failure of a divide-by-zero error.

async def getDivisionFailureCoro(msg: str | None = None):

Make a coroutine that throws a divide-by-zero error.

async def getValueViaCoro(value):

Undocumented

def getValueViaDeferred(value):

Undocumented