[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/KeywordIndex/tests - testKeywordIndex.py:1.6.12.1

Casey Duncan casey at zope.com
Fri Apr 23 10:29:56 EDT 2004


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/KeywordIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv22117/lib/python/Products/PluginIndexes/KeywordIndex/tests

Modified Files:
      Tag: Zope-2_7-branch
	testKeywordIndex.py 
Log Message:
Merge performance fix for numObjects() which should cure the slowness of the Indexes tab for large ZCatalogs


=== Zope/lib/python/Products/PluginIndexes/KeywordIndex/tests/testKeywordIndex.py 1.6 => 1.6.12.1 ===
--- Zope/lib/python/Products/PluginIndexes/KeywordIndex/tests/testKeywordIndex.py:1.6	Fri Feb 28 10:51:34 2003
+++ Zope/lib/python/Products/PluginIndexes/KeywordIndex/tests/testKeywordIndex.py	Fri Apr 23 10:29:25 2004
@@ -134,7 +134,7 @@
         self._populateIndex()
         values = self._values
 
-        #assert len( self._index ) == len( values )
+        self.assertEqual(self._index.numObjects(), len(self._index))
         assert len( self._index.referencedObjects() ) == len( values )
 
         assert self._index.getEntryForObject( 1234 ) is None




More information about the Zope-Checkins mailing list