[Zope-Checkins] CVS: Zope/lib/python/SearchIndex/tests - testUnTextIndex.py:1.10

Tres Seaver tseaver@zope.com
Sat, 13 Oct 2001 16:26:24 -0400


Update of /cvs-repository/Zope/lib/python/SearchIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv24340/lib/python/SearchIndex/tests

Modified Files:
	testUnTextIndex.py 
Log Message:
 - Avoid making global change to logger.

=== Zope/lib/python/SearchIndex/tests/testUnTextIndex.py 1.9 => 1.10 ===
 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 @@
    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 @@
        del self.db
 
    def tearDown(self):
+       ignore_log_errors()
        get_transaction().abort()
        if hasattr(self, 'jar'):
            self.dbclose()