Re: unittest for threading function always failed...

2007-05-21 Thread Kathryn Van Stone
If all you are doing is testing that run() works correctly, you could probably also get away with just calling run() directly instead of also implicitly testing the Thread class as well. -Kathy -- http://mail.python.org/mailman/listinfo/python-list

Re: unittest for threading function always failed...

2007-05-18 Thread i3dmaster
On May 18, 4:13 pm, i3dmaster <[EMAIL PROTECTED]> wrote: > I am having a little difficulty to figure out why this unittest for a > Thread subclass always fails... > > # unittest code: > > class SPThreadUnitTest(unittest.TestCase): > > def testgetresult(self): > from random import randint >

unittest for threading function always failed...

2007-05-18 Thread i3dmaster
I am having a little difficulty to figure out why this unittest for a Thread subclass always fails... # unittest code: class SPThreadUnitTest(unittest.TestCase): def testgetresult(self): from random import randint self.i = randint(1,10) def p(n): return n self.t = spthread.SPT