summaryrefslogtreecommitdiff
path: root/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
commit857ef723dd603f29b324570d9658283f7ec98e3c (patch)
treea6ca34befe10c9b4f03199f2a17e2edce191e35c /python
parent738d27396ed3d4752c99c10b8535586684a8a3d3 (diff)
downloadqpid-python-857ef723dd603f29b324570d9658283f7ec98e3c.tar.gz
use backwards compatible syntax for try, except, finally
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@810503 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-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"))