diff options
Diffstat (limited to 'python/qpid/tests/messaging.py')
-rw-r--r-- | python/qpid/tests/messaging.py | 5 |
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): |