Skip to content

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