asfgit closed pull request #432: DISPATCH-1232 - Adjusted FakeBroker to be 
compatible with python2.6
URL: https://github.com/apache/qpid-dispatch/pull/432
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/tests/test_broker.py b/tests/test_broker.py
index 5eade131..89bf6fd7 100644
--- a/tests/test_broker.py
+++ b/tests/test_broker.py
@@ -55,7 +55,7 @@ def subscribe(self, consumer):
         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)


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to