[Python-Dev] Proposed unittest changes

Nick Coghlan ncoghlan at gmail.com
Fri Apr 18 19:41:01 CEST 2008


Michael Foord wrote:
> that the 'assert' statement should be used 
> instead of 'assert_'.

assert statements are actually a bad idea in tests - they get skipped 
when the test suite is run with optimisation switched on.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-Dev mailing list