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 brett.cannon, ezio.melotti, tbicr
Date 2014-07-07.13:11:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1404738696.42.0.50102552771.issue21930@psf.upfronthosting.co.za>
In-reply-to
Content
Agreed, but there are a few problems with the proposals:
1) it requires the addition of a new keyword (raises), and that will break any program that uses it as an identifier;
2) the use case is arguably limited;
3) assertRaises is consistent with the other assert* methods, and it also provides way to inspect the exception, whereas IIUC what you are proposing does not (and also doesn't replace assertRaisesRegex);
4) I don't find your proposal simpler or more readable than what we have now:

In other words there are quite a few problems for little benefit, so even if you decide to bring this up to python-ideas, it's very unlikely that it will be accepted in its current form.
History
Date User Action Args
2014-07-07 13:11:36ezio.melottisetrecipients: + ezio.melotti, brett.cannon, tbicr
2014-07-07 13:11:36ezio.melottisetmessageid: <1404738696.42.0.50102552771.issue21930@psf.upfronthosting.co.za>
2014-07-07 13:11:36ezio.melottilinkissue21930 messages
2014-07-07 13:11:35ezio.melotticreate