summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-09-02 13:44:20 +0000
committerRafael H. Schloming <rhs@apache.org>2009-09-02 13:44:20 +0000
commitdb7343e602ab57c582256ab0ba6ae49e0b822102 (patch)
tree047df6194213caabe6e687063a69b6ac6a1bbef9 /qpid/python
parent55a941a1ce08cbe6b37e0c8e0f6acb22573cc291 (diff)
downloadqpid-python-db7343e602ab57c582256ab0ba6ae49e0b822102.tar.gz
use backwards compatible syntax for try, except, finally
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@810503 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/tests/messaging.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/qpid/python/qpid/tests/messaging.py b/qpid/python/qpid/tests/messaging.py
index 3ec8bf0749..d734bb421f 100644
--- a/qpid/python/qpid/tests/messaging.py
+++ b/qpid/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"))