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

- Avoid making global change to logger.

parent 6c1c876a
......@@ -86,7 +86,6 @@
import os, sys
execfile(os.path.join(sys.path[0], 'framework.py'))
catch_log_errors()
from Testing.ZODButil import makeDB, cleanDB
import SearchIndex.UnTextIndex
......@@ -97,6 +96,7 @@ class Tests(unittest.TestCase):
def setUp(self):
self.index=SearchIndex.UnTextIndex.UnTextIndex('text')
self.doc=Dummy(text='this is the time, when all good zopes')
catch_log_errors()
def dbopen(self):
db = self.db = makeDB()
......@@ -113,6 +113,7 @@ class Tests(unittest.TestCase):
del self.db
def tearDown(self):
ignore_log_errors()
get_transaction().abort()
if hasattr(self, 'jar'):
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