Remove Queue.empty() and Queue.full() in favor of using qsize() or trapping the Empty and Full exceptions.

This commit is contained in:
Raymond Hettinger 2008-01-14 21:39:24 +00:00
parent d32ed6f511
commit da3caedc55
5 changed files with 37 additions and 63 deletions

View file

@ -118,7 +118,7 @@ class ThreadableTest:
self.__tearDown()
self.done.wait()
if not self.queue.empty():
if self.queue.qsize():
msg = self.queue.get()
self.fail(msg)