Antoine Pitrou <[email protected]> added the comment:
This is already done in trunk, you can use it as follows:
with self.assertRaises(ZeroDivisionError):
1/0
----------
nosy: +pitrou
resolution: -> out of date
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue5206>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com