[issue22567] doctest handle ignored execption

2014-10-06 Thread R. David Murray
R. David Murray added the comment: 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 garba

[issue22567] doctest handle ignored execption

2014-10-06 Thread Yoav Caspi
New submission from Yoav Caspi: 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 =