You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2009/09/02 15:44:20 UTC
svn commit: r810503 - /qpid/trunk/qpid/python/qpid/tests/messaging.py
Author: rhs
Date: Wed Sep 2 13:44:20 2009
New Revision: 810503
URL: http://svn.apache.org/viewvc?rev=810503&view=rev
Log:
use backwards compatible syntax for try, except, finally
Modified:
qpid/trunk/qpid/python/qpid/tests/messaging.py
Modified: qpid/trunk/qpid/python/qpid/tests/messaging.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid/tests/messaging.py?rev=810503&r1=810502&r2=810503&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid/tests/messaging.py (original)
+++ qpid/trunk/qpid/python/qpid/tests/messaging.py Wed Sep 2 13:44:20 2009
@@ -264,10 +264,11 @@
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"))
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org