Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2df4c76

Browse files
graingertadiroiban
andauthoredOct 16, 2023
Update src/twisted/test/test_defer.py
Co-authored-by: Adi Roiban <adiroiban@gmail.com>
1 parent e990344 commit 2df4c76

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
 

‎src/twisted/test/test_defer.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -1714,7 +1714,15 @@ def test_inlineCallbacksTracebacks(self) -> None:
17141714
except BaseException:
17151715
d.errback()
17161716

1717-
def ic(d: object) -> Generator[Any, Any, None]:
1717+
def ic(d: object) -> Generator[Any, Any, None]: # pragma: no cover
1718+
"""
1719+
This is never called.
1720+
It is only used as the decorated function.
1721+
The resulting function is never called in this test.
1722+
This is used to make sure that if we wrap
1723+
an already failed deferred, inlineCallbacks
1724+
will not add any extra traceback frames.
1725+
"""
17181726
yield d
17191727

17201728
defer.inlineCallbacks(ic)

0 commit comments

Comments
 (0)
Failed to load comments.