I love assert

Ethan Furman ethan at stoneleaf.us
Tue Nov 11 22:15:54 CET 2014


On 11/11/2014 01:09 PM, Albert-Jan Roskam wrote:
> Ethan Furman wrote:
>>
>> asserts are a specialized tool, easily abused.  Sounds like you are using them
>> exactly as intended.
>
> Would you say that assert is baaadly abused in nose?*) I never tried it, but
>  probably all tests pass when Python is run with -O or -OO.

I don't know, haven't used it nor read the code.  It would certainly not be good if it failed in optimized mode.

--
~Ethan~



More information about the Python-list mailing list