[Zodb-checkins] SVN: ZODB/branches/3.9/src/ZODB/scripts/tests/test_repozo.py Backport tidying from trunk @ r106806.
Tres Seaver
tseaver at palladion.com
Sun Dec 20 09:51:31 EST 2009
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),
+ ])
More information about the Zodb-checkins
mailing list