Code

Forward-porting of fixes from the maintenance branch.
[roundup.git] / test / test_indexer.py
index 5948a0418b450f6c1c8cea726f769db3423a90d0..18e56f971e81690ae753f155a2d72f31a7000a50 100644 (file)
@@ -18,7 +18,7 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 
-# $Id: test_indexer.py,v 1.1 2002-07-10 06:40:01 richard Exp $
+# $Id: test_indexer.py,v 1.3 2003-10-25 22:53:26 richard Exp $
 
 import os, unittest, shutil
 
@@ -49,12 +49,13 @@ class IndexerTest(unittest.TestCase):
     def tearDown(self):
         shutil.rmtree('test-index')
 
-def suite():
-    return unittest.makeSuite(IndexerTest)
+def test_suite():
+    suite = unittest.TestSuite()
+    suite.addTest(unittest.makeSuite(IndexerTest))
+    return suite
 
+if __name__ == '__main__':
+    runner = unittest.TextTestRunner()
+    unittest.main(testRunner=runner)
 
-#
-# $Log: not supported by cvs2svn $
-#
-#
 # vim: set filetype=python ts=4 sw=4 et si