[issue11627] segfault raising an arbitrary object as an exception
Nick Coghlan
report at bugs.python.org
Tue Mar 22 12:49:06 CET 2011
Nick Coghlan <ncoghlan at gmail.com> added the comment:
Note that this test code:
def raise_():
raise MyException
self.assertRaises(TypeError, raise_)
can be simplified to:
with self.assertRaises(TypeError):
raise MyException
in all currently maintained branches.
----------
nosy: +ncoghlan
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11627>
_______________________________________
More information about the Python-bugs-list
mailing list