[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/scripts/tests/test_repozo.py Zap remnants of test module's script heritage; ease adding testcase classes.

Tres Seaver tseaver at palladion.com
Sun Dec 20 09:45:50 EST 2009


Log message for revision 106806:
  Zap remnants of test module's script heritage;  ease adding testcase classes.

Changed:
  U   ZODB/trunk/src/ZODB/scripts/tests/test_repozo.py

-=-
Modified: ZODB/trunk/src/ZODB/scripts/tests/test_repozo.py
===================================================================
--- ZODB/trunk/src/ZODB/scripts/tests/test_repozo.py	2009-12-20 05:02:08 UTC (rev 106805)
+++ ZODB/trunk/src/ZODB/scripts/tests/test_repozo.py	2009-12-20 14:45:49 UTC (rev 106806)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 ##############################################################################
 #
 # Copyright (c) 2004-2009 Zope Corporation and Contributors.
@@ -12,10 +11,9 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-
 import unittest
 import os
-import ZODB.tests.util
+import ZODB.tests.util  # layer used at class scope
 
 _NOISY = os.environ.get('NOISY_REPOZO_TEST_OUTPUT')
 
@@ -172,10 +170,6 @@
 
 
 def test_suite():
-    suite = unittest.TestSuite()
-    suite.addTest(unittest.makeSuite(RepozoTests))
-    return suite
-
-
-if __name__ == '__main__':
-    unittest.main(defaultTest='test_suite')
+    return unittest.TestSuite([
+        unittest.makeSuite(RepozoTests),
+    ])



More information about the Zodb-checkins mailing list