You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When implementing a class with a __del__ function that raise an exception the exception ignored.
is it possible to add this printed message to be tested by doc test?
something like when running this script the script will pass:
"""
Usage Example:
>>> cls = Module()
>>> del cls
Exception Exception: Exception('oops',) in <bound method Module.__del__ of <__main__.Module object at 0x000000000XXXXXXX>> ignored
"""
This tracker is not a place to get answers to questions, you should use the python-list mailing list for that. (That said, here's a hint: the only way to capture that message is to run it in a subprocess; the message is generated asynchronously, during garbage collection.)
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: