summaryrefslogtreecommitdiff
path: root/python/tests
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-02-09 14:15:17 +0000
committerGordon Sim <gsim@apache.org>2007-02-09 14:15:17 +0000
commit0b3933e6315389c5d32fb7abea5556c15440f888 (patch)
tree684e57f9708c2ed2185eaa1a75a637e811aa3f52 /python/tests
parentf0ba268d4e49206bb94b76154309bc3a4e091e8d (diff)
downloadqpid-python-0b3933e6315389c5d32fb7abea5556c15440f888.tar.gz
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
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/broker.py1
1 files changed, 1 insertions, 0 deletions
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])