From 857ef723dd603f29b324570d9658283f7ec98e3c Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Wed, 2 Sep 2009 13:44:20 +0000 Subject: 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 --- python/qpid/tests/messaging.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'python/qpid/tests/messaging.py') 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")) -- cgit v1.2.1