[Checkins] SVN: zope.hookable/trunk/ Normalize testing.

Tres Seaver cvs-admin at zope.org
Mon Jun 4 16:51:55 UTC 2012


Log message for revision 126577:
  Normalize testing.

Changed:
  _U  zope.hookable/trunk/
  U   zope.hookable/trunk/src/zope/hookable/tests/test_hookable.py

-=-
Modified: zope.hookable/trunk/src/zope/hookable/tests/test_hookable.py
===================================================================
--- zope.hookable/trunk/src/zope/hookable/tests/test_hookable.py	2012-06-04 16:51:47 UTC (rev 126576)
+++ zope.hookable/trunk/src/zope/hookable/tests/test_hookable.py	2012-06-04 16:51:51 UTC (rev 126577)
@@ -13,15 +13,13 @@
 ##############################################################################
 """Test the hookable support Extension
 """
+import unittest
 
-import doctest
-
 def test_suite():
-    return doctest.DocTestSuite('zope.hookable',
-                                optionflags=doctest.ELLIPSIS |
-                                            doctest.IGNORE_EXCEPTION_DETAIL,
-                               )
-
-if __name__ == '__main__':
-    import unittest
-    unittest.main()
+    import doctest
+    return unittest.TestSuite((
+        doctest.DocTestSuite('zope.hookable',
+                             optionflags=doctest.ELLIPSIS |
+                             doctest.IGNORE_EXCEPTION_DETAIL,
+                            ),
+    ))



More information about the checkins mailing list