Author: gsim
Date: Fri Feb 9 06:15:17 2007
New Revision: 505304
URL: http://svn.apache.org/viewvc?view=rev&rev=505304
Log:
Modified error handling to detect failure due to invalid response.
Modified:
incubator/qpid/branches/qpid.0-9/python/tests/broker.py
Modified: incubator/qpid/branches/qpid.0-9/python/tests/broker.py
URL:
http://svn.apache.org/viewvc/incubator/qpid/branches/qpid.0-9/python/tests/broker.py?view=diff&rev=505304&r1=505303&r2=505304
==============================================================================
--- incubator/qpid/branches/qpid.0-9/python/tests/broker.py (original)
+++ incubator/qpid/branches/qpid.0-9/python/tests/broker.py Fri Feb 9 06:15:17
2007
@@ -105,5 +105,6 @@
channel.queue_declare(exclusive=True)
self.fail("Expected error on queue_declare for closed channel")
except Closed, e:
+ if isinstance(e.args[0], str): self.fail(e)
self.assertConnectionException(504, e.args[0])