Ray.Allen <ysj....@gmail.com> added the comment:

Agreed. I think the "except Exception" in TestCase.run() should be "except 
BaseException", since BaseException could catch Exception, SystemExit, 
GeneratorExit, KeyboardInterrupt. The KeyboardInterrupt should be caught first. 
The remaining three is exactly what is needed.

Here is a patch I worked, with unittest.

----------
keywords: +patch
nosy: +ysj.ray
Added file: http://bugs.python.org/file19994/issue_10611.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10611>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to