summaryrefslogtreecommitdiff
path: root/python/qpid/tests/messaging.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/qpid/tests/messaging.py')
-rw-r--r--python/qpid/tests/messaging.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/python/qpid/tests/messaging.py b/python/qpid/tests/messaging.py
index 3ec8bf0749..d734bb421f 100644
--- a/python/qpid/tests/messaging.py
+++ b/python/qpid/tests/messaging.py
@@ -264,10 +264,11 @@ class SessionTests(Base):
def testAcknowledgeAsyncAckCap0(self):
try:
- self.ackTest(lambda ssn: ssn.acknowledge(sync=False), 0)
- assert False, "acknowledge shouldn't succeed with ack_capacity of zero"
- except InsufficientCapacity:
- pass
+ try:
+ self.ackTest(lambda ssn: ssn.acknowledge(sync=False), 0)
+ assert False, "acknowledge shouldn't succeed with ack_capacity of zero"
+ except InsufficientCapacity:
+ pass
finally:
self.ssn.ack_capacity = UNLIMITED
self.drain(self.ssn.receiver("test-ack-queue"))