[Erp5-report] r7179 - /erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu May 11 02:32:26 CEST 2006
Author: jerome
Date: Thu May 11 02:32:24 2006
New Revision: 7179
URL: http://svn.erp5.org?rev=7179&view=rev
Log:
Revert iHotfix's monkey patchs
( works with zope-iHotfix-0.5.2-4mdk )
Modified:
erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
Modified: erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py?rev=7179&r1=7178&r2=7179&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py (original)
+++ erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py Thu May 11 02:32:24 2006
@@ -48,7 +48,15 @@
ZopeTestCase.installProduct('PageTemplates')
ZopeTestCase.installProduct('PythonScripts')
ZopeTestCase.installProduct('ExternalMethod')
-ZopeTestCase.installProduct('iHotfix')
+try:
+ ZopeTestCase.installProduct('iHotfix')
+ from Products import iHotfix
+ from StringIO import StringIO
+ # revert monkey patchs from iHotfix
+ iHotfix.get_request = get_request
+ iHotfix.iHotfixStringIO = StringIO
+except ImportError:
+ pass
ZopeTestCase.installProduct('Localizer')
ZopeTestCase.installProduct('TimerService')
More information about the Erp5-report
mailing list