[issue14403] unittest module: provide inverse of "assertRaises"

Danilo Bargen report at bugs.python.org
Sun Mar 25 14:05:49 CEST 2012

Danilo Bargen <gezuru at gmail.com> added the comment:

>> I don't want to simply execute the code and hope that it doesn't raise 
>> an exception, because if it does, the test fails with an "error" status 
>> instead of a "failed" status.
> So what?

A buggy test is not the same thing as a test that fails because the test result did not meet your assertions.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list