[BangPypers] unittest failing

Kenneth Gonsalves lawgon at gmail.com
Tue Mar 8 12:56:48 CET 2011


On Tue, 2011-03-08 at 19:52 +0800, Senthil Kumaran wrote:
> On Tue, Mar 8, 2011 at 7:43 PM, Kenneth Gonsalves <lawgon at gmail.com>
> wrote:
> >        self.assertRaises(TypeError,testfunc())
> 
> Not to call testfunc, but just exercise.
> 
>        self.assertRaises(TypeError,testfunc)
> 
> unittest framework takes care of calling and evaluating. 

thanks - I *knew* that, but I was debugging someone else's code and
forgot
-- 
regards
Kenneth Gonsalves
http://lawgon.livejournal.com/



More information about the BangPypers mailing list