You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gm...@apache.org on 2019/01/02 15:23:02 UTC

[qpid-dispatch] 03/03: DISPATCH-1232 - Adjusted FakeBroker to be compatible with python2.6. This closes #432.

This is an automated email from the ASF dual-hosted git repository.

gmurthy pushed a commit to branch 1.5.x
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git

commit bd471c18039e0e12a002fd1b3aa304e5c085ab90
Author: Fernando Giorgetti <fg...@redhat.com>
AuthorDate: Wed Dec 26 10:53:37 2018 -0200

    DISPATCH-1232 - Adjusted FakeBroker to be compatible with python2.6. This closes #432.
---
 tests/test_broker.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_broker.py b/tests/test_broker.py
index 5eade13..89bf6fd 100644
--- a/tests/test_broker.py
+++ b/tests/test_broker.py
@@ -55,7 +55,7 @@ class FakeBroker(MessagingHandler):
         def unsubscribe(self, consumer):
             if consumer in self.consumers:
                 self.consumers.remove(consumer)
-            return len(self.consumers) == 0 and (self.dynamic or self.queue.count == 0)
+            return len(self.consumers) == 0 and (self.dynamic or len(self.queue) == 0)
 
         def publish(self, message):
             self.queue.append(message)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org