show suspend/resume in test job

This commit is contained in:
Darren Ranalli 2007-03-15 02:25:51 +00:00
parent 8a1e82b5c8
commit e0ac96d42a

View File

@ -76,6 +76,7 @@ if __debug__: # __dev__ not yet available at this point
self._finished = False
def run(self):
self.printingBegin()
while True:
while self._accum < 100:
self._accum += 1
@ -87,6 +88,7 @@ if __debug__: # __dev__ not yet available at this point
if self._counter >= 100:
print 'Job.Done'
self.printingEnd()
yield Job.Done
else:
yield None