[Zope3-checkins] SVN: Zope3/branches/jim-index/src/zope/app/catalog/tests.py Removed some dead code.

Gintautas Miliauskas gintas at pov.lt
Sat Jun 12 10:13:51 EDT 2004


Log message for revision 25397:
Removed some dead code.



-=-
Modified: Zope3/branches/jim-index/src/zope/app/catalog/tests.py
===================================================================
--- Zope3/branches/jim-index/src/zope/app/catalog/tests.py	2004-06-12 14:12:52 UTC (rev 25396)
+++ Zope3/branches/jim-index/src/zope/app/catalog/tests.py	2004-06-12 14:13:50 UTC (rev 25397)
@@ -102,14 +102,7 @@
                 results.append(docid)
         return IISet(results)
 
-#        d = {}
-#        for docid in self.doc:
-#            obj = self.doc[docid]
-#            term = getattr(obj, self._field_name, '')
-#            d.setdefault(term, []).append(docid)
-#        return IISet(d.get(term, []))
 
-
 class stoopid:
     def __init__(self, **kw):
         self.__dict__ = kw
@@ -194,11 +187,9 @@
         res = list(res)
 
 def test_suite():
-    import sys
-    return unittest.TestSuite((
-        unittest.makeSuite(Test),
-###        doctest.DocTestSuite(sys.modules[__name__]),
-        ))
+    suite = unittest.TestSuite()
+    suite.addTest(unittest.makeSuite(Test))
+    return suite
 
 if __name__ == "__main__":
     unittest.main()




More information about the Zope3-Checkins mailing list