From 0b3933e6315389c5d32fb7abea5556c15440f888 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 9 Feb 2007 14:15:17 +0000 Subject: Modified error handling to detect failure due to invalid response. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@505304 13f79535-47bb-0310-9956-ffa450edef68 --- python/tests/broker.py | 1 + 1 file changed, 1 insertion(+) (limited to 'python/tests') diff --git a/python/tests/broker.py b/python/tests/broker.py index ebb3a525f5..2cdfd233f7 100644 --- a/python/tests/broker.py +++ b/python/tests/broker.py @@ -105,5 +105,6 @@ class BrokerTests(TestBase): 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]) -- cgit v1.2.1