

def test_returnValueNonLocalWarning(self):
    '\n        L{returnValue} will emit a non-local exit warning in the simplest case,\n        where the offending function is invoked immediately.\n        '

    @inlineCallbacks
    def inline():
        self.mistakenMethod()
        returnValue(2)
        (yield 0)
    d = inline()
    results = []
    d.addCallback(results.append)
    self.assertMistakenMethodWarning(self)

dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/internet/test/inlinecb_tests.py NonLocalExitTests.test_returnValueNonLocalWarning/VarMisuse@64/132 `results`->`self`