mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Remove Queue.empty() and Queue.full() in favor of using qsize() or trapping the Empty and Full exceptions.
This commit is contained in:
parent
d32ed6f511
commit
da3caedc55
5 changed files with 37 additions and 63 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue