[Zope3-dev] layers can't be new style classes?

Chris Withers chris at simplistix.co.uk
Tue Oct 17 06:50:12 EDT 2006


Stefan H. Holek wrote:
> IIRC you need
> 
>     @classmethod
>     def setUp(cls):
>         pass
> 
>     @classmethod
>     def tearDown(cls):
>         pass

Sorry, braino on my part. Yes, I have the @classmethod's and I still see 
the error:

>> AttributeError: type object 'object' has no attribute 'setUp'

cheers,

Chris

PS: Has anyone doen the work Philipp aludes to in his article to make 
ZopeTestCase a series of layers?

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope3-dev mailing list