Commit 7cbbf24c authored by Tres Seaver's avatar Tres Seaver

- Avoid making global change to logger.

parent 6c1c876a
...@@ -86,7 +86,6 @@ ...@@ -86,7 +86,6 @@
import os, sys import os, sys
execfile(os.path.join(sys.path[0], 'framework.py')) execfile(os.path.join(sys.path[0], 'framework.py'))
catch_log_errors()
from Testing.ZODButil import makeDB, cleanDB from Testing.ZODButil import makeDB, cleanDB
import SearchIndex.UnTextIndex import SearchIndex.UnTextIndex
...@@ -97,6 +96,7 @@ class Tests(unittest.TestCase): ...@@ -97,6 +96,7 @@ class Tests(unittest.TestCase):
def setUp(self): def setUp(self):
self.index=SearchIndex.UnTextIndex.UnTextIndex('text') self.index=SearchIndex.UnTextIndex.UnTextIndex('text')
self.doc=Dummy(text='this is the time, when all good zopes') self.doc=Dummy(text='this is the time, when all good zopes')
catch_log_errors()
def dbopen(self): def dbopen(self):
db = self.db = makeDB() db = self.db = makeDB()
...@@ -113,6 +113,7 @@ class Tests(unittest.TestCase): ...@@ -113,6 +113,7 @@ class Tests(unittest.TestCase):
del self.db del self.db
def tearDown(self): def tearDown(self):
ignore_log_errors()
get_transaction().abort() get_transaction().abort()
if hasattr(self, 'jar'): if hasattr(self, 'jar'):
self.dbclose() self.dbclose()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment