[py-svn] r57028 - py/branch/event/py/test2

hpk at codespeak.net hpk at codespeak.net
Wed Aug 6 16:53:20 CEST 2008


Author: hpk
Date: Wed Aug  6 16:53:18 2008
New Revision: 57028

Modified:
   py/branch/event/py/test2/pycollect.py
Log:
provide more info


Modified: py/branch/event/py/test2/pycollect.py
==============================================================================
--- py/branch/event/py/test2/pycollect.py	(original)
+++ py/branch/event/py/test2/pycollect.py	Wed Aug  6 16:53:18 2008
@@ -237,7 +237,7 @@
         for i, x in py.builtin.enumerate(self.obj()): 
             call, args = self.getcallargs(x)
             if not callable(call): 
-                raise TypeError("yielded test %r not callable" %(call,))
+                raise TypeError("%r yielded non callable test %r" %(self.obj, call,))
             name = "[%d]" % i  
             d[name] = self.Function(name, self, args, callobj=call)
         return d



More information about the pytest-commit mailing list