doctest, unittest, or if __name__='__main__'

Paul Rubin http
Tue Mar 28 06:44:34 CEST 2006


"lollipopenator at gmail.com" <lollipopenator at gmail.com> writes:
>  I have noticed some distinctly funny and confused feelings I get when
> using the unittest module, stuff that feels clunky and odd about how it
> is set-up, however I thought that this was just  due to *my personal*
> lack of understanding of the deep magic and sophisticated design
> patterns used in this module!
> 
> If it turns out to be 'unpythonic' 

The unpythonicness stems from it being basically a reimplementation of
JUnit, which was designed for use with Java.



More information about the Python-list mailing list