Skip to content

bpo-45615: Add missing test for printing traceback for non-exception. Fix… #30091

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

Merged
merged 4 commits into from
Jan 2, 2022

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Dec 13, 2021

… traceback.py to raise TypeError instead of AttributeError

This gap was discovered via code coverage. The testcapi function checked the type, so it didn't give the C traceback a chance to see the error. I removed that so the C code is now covered.

The python traceback wasn't handling this error well, that's fixed here.

https://bugs.python.org/issue45615

… traceback.py to raise TypeError instead of AttributeError
@iritkatriel iritkatriel changed the title 45615: Add missing test for printing traceback for non-exception. Fix… bpo-45615: Add missing test for printing traceback for non-exception. Fix… Dec 13, 2021
Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for submitting this! 👍
Sorry, I totally forgot about it!

@iritkatriel iritkatriel requested review from pablogsal and erlend-aasland and removed request for serhiy-storchaka December 30, 2021 00:40
@iritkatriel
Copy link
Member Author

Thank you @sobolevn and @erlend-aasland

@iritkatriel iritkatriel merged commit a82baed into python:main Jan 2, 2022
@iritkatriel iritkatriel deleted the bpo-45615 branch January 2, 2022 09:34
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.

5 participants