You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2009/10/26 16:10:34 UTC

svn commit: r829822 - /qpid/trunk/qpid/python/qpid/tests/messaging.py

Author: rhs
Date: Mon Oct 26 15:10:34 2009
New Revision: 829822

URL: http://svn.apache.org/viewvc?rev=829822&view=rev
Log:
improve assertion message

Modified:
    qpid/trunk/qpid/python/qpid/tests/messaging.py

Modified: qpid/trunk/qpid/python/qpid/tests/messaging.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid/tests/messaging.py?rev=829822&r1=829821&r2=829822&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid/tests/messaging.py (original)
+++ qpid/trunk/qpid/python/qpid/tests/messaging.py Mon Oct 26 15:10:34 2009
@@ -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 @@
       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 @@
       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):



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org