Closed as not planned
Closed as not planned
Description
here's a demo in the repl
>>> class Foo:
... def __del__(self):
... raise BaseExceptionGroup("the bad", [Exception("critical debug advice here")])
...
>>> f = Foo()
>>> del f
Exception ignored in: <function Foo.__del__ at 0x7f2f59df2200>
Traceback (most recent call last):
File "<stdin>", line 3, in __del__
ExceptionGroup: the bad (1 sub-exception)
>>>
@vstinner @iritkatriel I'm not sure if this is an omission or by design, but if an exception with critical debug advice is raised in an exceptiongroup during __del__
I can't see the type or error message
I expected the output to include:
+ Exception Group Traceback (most recent call last):
| File "<stdin>", line 1, in <module>
| ExceptionGroup: the bad (1 sub-exception)
+-+---------------- 1 ----------------
| Exception: critical debug advice here
+------------------------------------