Ticket #2501 defect closed fixed
Make defer.inlineCallbacks raise an exception if it has a non-generator
|Reported by:||jack||Owned by:||forrestv|
|Cc:||twonds, exarkun, spiv, radix, ivank-twisted-bugs@…, thijs||Branch:||
(diff, github, buildbot, log)
Description (last modified by thijs) (diff)
If defer.inlineCallbacks is used on an empty function, the function will generate an exception. Test case attached which demonstrates the error. The testcase requires Python 2.5 to run since it depends on defer.inlineCallbacks.
I ran into this while stubbing out test cases for XMPP components.