diff options
author | Raymond Hettinger <python@rcn.com> | 2008-01-14 21:39:24 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-01-14 21:39:24 (GMT) |
commit | da3caedc559d6314502ddc4b10cad8534fb9d8d1 (patch) | |
tree | e57f7ae511ed0ff3a1539a5583799058dfa33450 /Lib/test/test_socket.py | |
parent | d32ed6f5117a68037e9cb7bcfd8d0f8d1611f442 (diff) | |
download | cpython-da3caedc559d6314502ddc4b10cad8534fb9d8d1.zip cpython-da3caedc559d6314502ddc4b10cad8534fb9d8d1.tar.gz cpython-da3caedc559d6314502ddc4b10cad8534fb9d8d1.tar.bz2 |
Remove Queue.empty() and Queue.full() in favor of using qsize() or trapping the Empty and Full exceptions.
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r-- | Lib/test/test_socket.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index d474206..23b7759 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -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) |