Skip to content

Commit

Permalink
defer: Add a note of why tests should call certain functions directly
Browse files Browse the repository at this point in the history
  • Loading branch information
p12tic committed May 16, 2024
1 parent 0bfd831 commit 8a588fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/twisted/internet/test/test_inlinecb.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ class BasicTests(TestCase):
"""
This test suite tests basic use cases of L{inlineCallbacks}. For more
complex tests see e.g. StackedInlineCallbacksTests.
Note that it is important to directly call addCallbacks and other
functions exposed as an API, because both L{inlineCallbacks} and
L{Deferred} may be optimized in ways that are only exercised in particular
situations.
"""

def testBasics(self):
Expand Down

0 comments on commit 8a588fa

Please sign in to comment.