On Thu, 6 Nov 2008 09:31:12 +1100
Simon Burton <[EMAIL PROTECTED]> wrote:

...
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ _
> 
>     def _getobj(self): 
> E       return self.parent.obj()  
> >       TypeError: __init__() takes exactly 2 arguments (1 given)
> 
> /home/simon/local/pypy/py/test/collect.py:436: TypeError


Aha! Looks like py.test is picking up a class that happened to have prefix Test.
It is not a unit test class (has no test_* methods); i just made sure it could 
be
constructed with one argument.

Simon.


_______________________________________________
py-dev mailing list
py-dev@codespeak.net
http://codespeak.net/mailman/listinfo/py-dev

Reply via email to