Reinout van Rees wrote:
> 
> Kai Diefenbach wrote:
> 
>> How can I make Zope call the initialize method for tests as it does when
>> it starts the normal way?
> 
> Copy-pasted from one of Maurits' testcases:
> 
> 
> 
> from Products.Five import pythonproducts
> 
> class MainTestCase(testcase):
>      """Base TestCase for plonehrm."""
> 
>      def afterSetUp(self):
>          pythonproducts.applyPatches()
> 
>      def afterClear(self):
>          pythonproducts.removePatches()
> 
> 
> 
> It works just fine for me if I add this. Make sure you don't override 
> the afterSetUp() in subsequent testcases (in case you're inheriting from 
> a base testcase).
> 

You should not be using Pythonproducts (or its monkey patches) on Zope
2.10/Plone 3.

Martin

-- 
View this message in context: 
http://www.nabble.com/Downsides-of-moving-from-Products-to-lib-python--tf4325875s20094.html#a12638289
Sent from the Product Developers mailing list archive at Nabble.com.


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to