Nick Coghlan <ncogh...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue11627>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to