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
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
>
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