summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-10-26 15:10:34 +0000
committerRafael H. Schloming <rhs@apache.org>2009-10-26 15:10:34 +0000
commit448fde7c17def1a6bab695da859a4e0596b78188 (patch)
tree4f268fd087bb5dad19db8a204a1cb0677a4c2fdc /qpid/python
parent08cd6299501a07c343e52cdcdaf55db12fc3ab7f (diff)
downloadqpid-python-448fde7c17def1a6bab695da859a4e0596b78188.tar.gz
improve assertion message
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@829822 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/tests/messaging.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/python/qpid/tests/messaging.py b/qpid/python/qpid/tests/messaging.py
index 860c3660d1..13638638fb 100644
--- a/qpid/python/qpid/tests/messaging.py
+++ b/qpid/python/qpid/tests/messaging.py
@@ -21,6 +21,7 @@
# boundary-conditions, config
import time
+from qpid import compat
from qpid.tests import Test
from qpid.harness import Skipped
from qpid.messaging import Connection, ConnectError, Disconnected, Empty, \
@@ -585,7 +586,7 @@ class AddressErrorTests(Base):
snd.send("hello")
assert False, "send succeeded"
except exc, e:
- assert check(e), "unexpected error: %s" % e
+ assert check(e), "unexpected error: %s" % compat.format_exc(e)
snd.close()
def fetchErrorTest(self, addr, exc, check=lambda e: True):
@@ -594,7 +595,7 @@ class AddressErrorTests(Base):
rcv.fetch(timeout=0)
assert False, "fetch succeeded"
except exc, e:
- assert check(e), "unexpected error: %s" % e
+ assert check(e), "unexpected error: %s" % compat.format_exc(e)
rcv.close()
def testNoneTarget(self):