This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients amaury.forgeotdarc, christian.heimes, kristjan.jonsson, mark.dickinson, pitrou
Date 2009-01-16.22:31:50
SpamBayes Score 0.0058196173
Marked as misclassified No
Message-id <1232145113.02.0.165509052206.issue4293@psf.upfronthosting.co.za>
In-reply-to
Content
How about using a timer instead of the 'count += 1' loop:  after starting 
the 32 self.pendingcalls_submit threads, set up a threading.Event and 
start yet another thread that simply does a time.sleep(5.0) (or whatever) 
and then sets that event.

Then your waiting loop could be something like:

while not self.my_event.is_set():
    for i in range(1000):
        a = i*i
self.assertEqual(len(l), n)

There's probably a better way, but that's the best I can come up with this 
late on a Friday night...
History
Date User Action Args
2009-01-16 22:31:53mark.dickinsonsetrecipients: + mark.dickinson, amaury.forgeotdarc, pitrou, kristjan.jonsson, christian.heimes
2009-01-16 22:31:53mark.dickinsonsetmessageid: <1232145113.02.0.165509052206.issue4293@psf.upfronthosting.co.za>
2009-01-16 22:31:52mark.dickinsonlinkissue4293 messages
2009-01-16 22:31:51mark.dickinsoncreate