-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add exceptiongroup support to third party projects #23
Comments
As of 1.0.0rc9, other projects can now be made to support exception group formatting via this library. |
Is pytest such a library? |
I believe there are people already working to integrate exception groups to pytest. |
The hypothesis project had a number of PRs concerning the topic. |
The tip:
looks to be very useful for now. Ideally PyTest will start displaying exception groups and notes natively at some point. |
@agronholm are you okay with adding/moving the apport excepthook we currently have in |
I'm okay with it as a workaround, so long as it doesn't affect anything else. |
As of #88 there is now a workaround for apport, but I also opened https://bugs.launchpad.net/apport/+bug/2042672 |
As requested on python-trio/trio#2213, we should try to add exceptiongroup support to both IPython and Apport. This issue tracks all efforts to add exceptiongroup support to other projects.
IPython seems to use customized versions of
format_exception()
andformat_exception_only()
, so it's likely to need an update to display exception groups, even on Python 3.11.Apport, on the other hand, uses
format_exc()
andprint_exc()
straight from thetraceback
module, so a conditional import might do the trick.The text was updated successfully, but these errors were encountered: