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

Chris McDonough chrism@zope.com
Thu, 24 Jul 2003 15:31:24 -0400


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

Modified Files:
      Tag: Zope-2_7-branch
	testUnTextIndex.py 
Log Message:
Merge from HEAD: fix for failing SearchIndex tests due to missing Dummy class and log functions.


=== Zope/lib/python/SearchIndex/tests/testUnTextIndex.py 1.13 => 1.13.68.1 ===
--- Zope/lib/python/SearchIndex/tests/testUnTextIndex.py:1.13	Wed Aug 14 17:46:24 2002
+++ Zope/lib/python/SearchIndex/tests/testUnTextIndex.py	Thu Jul 24 15:31:20 2003
@@ -18,12 +18,16 @@
 import SearchIndex.UnTextIndex
 import SearchIndex.GlobbingLexicon
 
+class Dummy:
+
+    def __init__( self, text ):
+        self.text = text
+
 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()
@@ -40,7 +44,6 @@
         del self.db
 
     def tearDown(self):
-        ignore_log_errors()
         get_transaction().abort()
         if hasattr(self, 'jar'):
             self.dbclose()