◐ Shell
reader mode source ↗
Skip to content

bpo-36829: Document test.support.catch_unraisable_exception()#13554

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:catch_unraisable2
May 24, 2019
Merged

bpo-36829: Document test.support.catch_unraisable_exception()#13554
vstinner merged 1 commit into
python:masterfrom
vstinner:catch_unraisable2

Conversation

@vstinner

@vstinner vstinner commented May 24, 2019

Copy link
Copy Markdown
Member

catch_unraisable_exception() now also removes its 'unraisable'
attribute at the context manager exit.

https://bugs.python.org/issue36829

@vstinner

Copy link
Copy Markdown
Member Author

@vstinner

Copy link
Copy Markdown
Member Author

Oh. "del self.unraisable" was a good idea. I only used the context manager in a few places, but I already get it wrong in test_io :-) It's now fixed by this PR!

catch_unraisable_exception() now also removes its 'unraisable'
attribute at the context manager exit.
@vstinner

Copy link
Copy Markdown
Member Author

@tirkarthi @graingert: Would you mind to review the updated PR?

@vstinner vstinner merged commit 6dbbe74 into python:master May 24, 2019
@vstinner

Copy link
Copy Markdown
Member Author

@graingert: Thanks for your very good feedback, it's very valuable!

@vstinner vstinner deleted the catch_unraisable2 branch May 24, 2019 22:09
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
…GH-13554)

catch_unraisable_exception() now also removes its 'unraisable'
attribute at the context manager exit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants