summaryrefslogtreecommitdiff
path: root/python/qpid/tests/messaging.py
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
commit74d60c79368c1a2e70595ab33aa469e2746009c8 (patch)
tree8faef347126ba4e28d078faa9e9cacd6939562f1 /python/qpid/tests/messaging.py
parentb0c7de4902c6126001293f1625e31356cc8ba524 (diff)
downloadqpid-python-74d60c79368c1a2e70595ab33aa469e2746009c8.tar.gz
improve assertion message
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@829822 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/tests/messaging.py')
-rw-r--r--python/qpid/tests/messaging.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/qpid/tests/messaging.py b/python/qpid/tests/messaging.py
index 860c3660d1..13638638fb 100644
--- a/python/qpid/tests/messaging.py
+++ b/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):