This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients docs@python, eric.araujo, ezio.melotti, michael.foord, ncoghlan, notizblock, orsenthil, rhettinger, serhiy.storchaka
Date 2012-12-24.09:02:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356339772.69.0.392621876128.issue11468@psf.upfronthosting.co.za>
In-reply-to
Content
Given that this is a basic example, it's not necessary to introduce both the forms of assertRaises.
I personally find the context manager form more readable, and I prefer it to the regular one even if it takes two lines instead of one.
History
Date User Action Args
2012-12-24 09:02:52ezio.melottisetrecipients: + ezio.melotti, rhettinger, ncoghlan, orsenthil, eric.araujo, michael.foord, docs@python, notizblock, serhiy.storchaka
2012-12-24 09:02:52ezio.melottisetmessageid: <1356339772.69.0.392621876128.issue11468@psf.upfronthosting.co.za>
2012-12-24 09:02:52ezio.melottilinkissue11468 messages
2012-12-24 09:02:52ezio.melotticreate