[Zope-Checkins]
SVN: Zope/branches/philikon-zope32-integration/lib/python/Products/SiteErrorLog/tests/testSiteErrorLog.py
Move code inside try/except.
Florent Guillaume
fg at nuxeo.com
Tue Nov 1 16:31:50 EST 2005
Log message for revision 39829:
Move code inside try/except.
Changed:
U Zope/branches/philikon-zope32-integration/lib/python/Products/SiteErrorLog/tests/testSiteErrorLog.py
-=-
Modified: Zope/branches/philikon-zope32-integration/lib/python/Products/SiteErrorLog/tests/testSiteErrorLog.py
===================================================================
--- Zope/branches/philikon-zope32-integration/lib/python/Products/SiteErrorLog/tests/testSiteErrorLog.py 2005-11-01 21:26:30 UTC (rev 39828)
+++ Zope/branches/philikon-zope32-integration/lib/python/Products/SiteErrorLog/tests/testSiteErrorLog.py 2005-11-01 21:31:49 UTC (rev 39829)
@@ -21,11 +21,11 @@
def setUp(self):
transaction.begin()
self.app = makerequest(Zope2.app())
- if not hasattr(self.app, 'error_log'):
- # If ZopeLite was imported, we have no default error_log
- from Products.SiteErrorLog.SiteErrorLog import SiteErrorLog
- self.app._setObject('error_log', SiteErrorLog())
try:
+ if not hasattr(self.app, 'error_log'):
+ # If ZopeLite was imported, we have no default error_log
+ from Products.SiteErrorLog.SiteErrorLog import SiteErrorLog
+ self.app._setObject('error_log', SiteErrorLog())
self.app.manage_addDTMLMethod('doc', '')
except:
self.tearDown()
More information about the Zope-Checkins
mailing list