SVN: ZODB/branches/3.9/src/ZODB/scripts/tests/test_repozo.py Backport tidying from trunk @ r106806.

Tres Seaver <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <20091220145131.948BE94191__29174.1479923532$1261320701$gmane$org@cvs.zope.org>
Log message for revision 106807:
  Backport tidying from trunk @ r106806.

Changed:
  U   ZODB/branches/3.9/src/ZODB/scripts/tests/test_repozo.py

-=-
Modified: ZODB/branches/3.9/src/ZODB/scripts/tests/test_repozo.py
===================================================================
--- ZODB/branches/3.9/src/ZODB/scripts/tests/test_repozo.py	2009-12-20 14:45:49 UTC (rev 106806)
+++ ZODB/branches/3.9/src/ZODB/scripts/tests/test_repozo.py	2009-12-20 14:51:31 UTC (rev 106807)
@@ -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),
+    ])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.