Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

9176 redux #1031

Merged
merged 13 commits into from
Jun 28, 2018
Merged

9176 redux #1031

merged 13 commits into from
Jun 28, 2018

Conversation

glyph
Copy link
Member

@glyph glyph commented Jun 28, 2018

This supersedes #814 just for the purposes of merging. (It should auto-close when this lands.)

tardyp and others added 13 commits October 3, 2017 10:59
Before:

twisted.internet.test.test_inlinecb
  ForwardTraceBackTests
    test_forwardLotsOfTracebacks ... Traceback (most recent call last):
  File "twisted/src/twisted/internet/defer.py", line 1532, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
  File "twisted/src/twisted/internet/defer.py", line 1386, in _inlineCallbacks
    result = g.send(result)
  File "twisted/src/twisted/internet/test/test_inlinecb.py", line 162, in calling3
    yield erroring()
  File "twisted/src/twisted/internet/defer.py", line 1532, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
--- <exception caught here> ---
  File "twisted/src/twisted/internet/defer.py", line 1386, in _inlineCallbacks
    result = g.send(result)
  File "twisted/src/twisted/internet/test/test_inlinecb.py", line 157, in erroring
    raise Exception()
builtins.Exception:

After:

twisted.internet.test.test_inlinecb
  ForwardTraceBackTests
    test_forwardLotsOfTracebacks ... Traceback (most recent call last):
  File "twisted/src/twisted/internet/defer.py", line 1532, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
  File "twisted/src/twisted/internet/defer.py", line 1386, in _inlineCallbacks
    result = g.send(result)
  File "twisted/src/twisted/internet/test/test_inlinecb.py", line 162, in calling3
    yield erroring()
  File "twisted/src/twisted/internet/defer.py", line 1532, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
--- <exception caught here> ---
  File "twisted/src/twisted/internet/test/test_inlinecb.py", line 170, in calling
    yield calling2()
  File "twisted/src/twisted/internet/test/test_inlinecb.py", line 166, in calling2
    yield calling3()
  File "twisted/src/twisted/internet/test/test_inlinecb.py", line 162, in calling3
    yield erroring()
  File "twisted/src/twisted/internet/defer.py", line 1386, in _inlineCallbacks
    result = g.send(result)
  File "twisted/src/twisted/internet/test/test_inlinecb.py", line 157, in erroring
    raise Exception()
builtins.Exception:
Actually, that unit test demonstrated an issue with the fact that original
failure was changed by the failure chaining code.
"The new Failure should be chained to that original Failure."

Should it be the exact same Failure?

or should it also include were the Failure was rethrown?
@glyph glyph merged commit 659a934 into trunk Jun 28, 2018
@glyph glyph deleted the 9176-inlinetracebacks branch June 28, 2018 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants