[PyObjC-svn] r2334 - trunk/pyobjc/pyobjc-core/Lib/PyObjCTools

[email protected] Tue, 13 Oct 2009 03:02:41 -0500
Newsgroups gmane.comp.python.pyobjc.cvs
Message-ID <[email protected]>
Author: ronaldoussoren
Date: Tue Oct 13 03:02:40 2009
New Revision: 2334

Log:
Improve test failure message

Modified:
   trunk/pyobjc/pyobjc-core/Lib/PyObjCTools/TestSupport.py

Modified: trunk/pyobjc/pyobjc-core/Lib/PyObjCTools/TestSupport.py
==============================================================================
--- trunk/pyobjc/pyobjc-core/Lib/PyObjCTools/TestSupport.py	(original)
+++ trunk/pyobjc/pyobjc-core/Lib/PyObjCTools/TestSupport.py	Tue Oct 13 03:02:40 2009
@@ -406,8 +406,8 @@
         info = method.__metadata__()
         type = info['retval']['type']
         if type != objc._C_NSBOOL:
-            self.fail(message or "result of %s is not of type BOOL"%(
-                method))
+            self.fail(message or "result of %s is not of type BOOL, but %r"%(
+                method, type))
 
     def failUnlessArgIsBOOL(self, method, argno, message=None):
         if isinstance(method, objc.selector):

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference