diff options
author | Rafael H. Schloming <rhs@apache.org> | 2009-09-02 13:44:20 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2009-09-02 13:44:20 +0000 |
commit | 857ef723dd603f29b324570d9658283f7ec98e3c (patch) | |
tree | a6ca34befe10c9b4f03199f2a17e2edce191e35c /python/qpid/tests/messaging.py | |
parent | 738d27396ed3d4752c99c10b8535586684a8a3d3 (diff) | |
download | qpid-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/qpid/tests/messaging.py')
-rw-r--r-- | python/qpid/tests/messaging.py | 9 |
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")) |