[Python-Dev] Proposed unittest changes (original) (raw)
Jonathan Lange jml at mumak.net
Fri Apr 18 00:31:15 CEST 2008
- Previous message: [Python-Dev] Proposed unittest changes
- Next message: [Python-Dev] Proposed unittest changes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, Apr 17, 2008 at 11:49 PM, Michael Foord <fuzzyman at voidspace.org.uk> wrote:
assertraiseswithmessage (excclass, message, callable, *args, **keywargs)
I don't think this one should go in.
I think it would be better if assertRaises just returned the exception object that it catches. That way, you can test properties of the exception other than its message.
jml
- Previous message: [Python-Dev] Proposed unittest changes
- Next message: [Python-Dev] Proposed unittest changes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]