Even more test coverage

This commit is contained in:
Paulus Schoutsen 2014-11-22 21:40:01 -08:00
parent 1069d79298
commit 5943f757a0
3 changed files with 134 additions and 35 deletions

View file

@ -246,6 +246,10 @@ class ThreadPool(object):
self.busy_callback(self.current_jobs, self.work_queue.qsize())
def block_till_done(self):
""" Blocks till all work is done. """
self.work_queue.join()
class PriorityQueueItem(object):
""" Holds a priority and a value. Used within PriorityQueue. """