[Python-Dev] unittest's redundant assertions: asserts vs. failIf/Unlesses

Steven D'Aprano steve at pearwood.info
Mon Jul 14 01:46:03 CEST 2008


On Mon, 14 Jul 2008 04:19:57 am Mark Hammond wrote:

> try to stick to the issue at hand

I'm sorry, did I reply to the wrong message? I thought this was part of 
a thread titled "unittest's redundant assertions: asserts vs.	
failIf/Unlesses". What *is* the issue at hand if not the question of 
positive assertions versus fail if/unless?

> As Steve said, this is getting silly...

It certainly is.

Python may be Guido's language, and if he wants to use his dictatorial 
powers to say that tests must be written as positive assertions because 
that's the way he likes it, that's his prerogative. But let's not 
pretend that this particular bike shed colour has any objectively 
rational reason, or that the change won't force some people to have to 
change the way they think about tests.



-- 
Steven


More information about the Python-Dev mailing list