[Checkins] SVN: zc.comment/trunk/ - Using Python's ``doctest`` module instead of depreacted ``zope.testing.doctest``.

Michael Howitz mh at gocept.com
Wed Mar 2 02:49:25 EST 2011


Log message for revision 120662:
  - Using Python's ``doctest`` module instead of depreacted ``zope.testing.doctest``.
  

Changed:
  U   zc.comment/trunk/CHANGES.txt
  U   zc.comment/trunk/src/zc/comment/tests.py

-=-
Modified: zc.comment/trunk/CHANGES.txt
===================================================================
--- zc.comment/trunk/CHANGES.txt	2011-03-02 07:48:33 UTC (rev 120661)
+++ zc.comment/trunk/CHANGES.txt	2011-03-02 07:49:25 UTC (rev 120662)
@@ -8,6 +8,8 @@
 - Fixed tests to run with `zope.interface` >= 3.3, `zope.schema` >= 3.6 and
   `zc.table` >= 0.7, thus requiring at least these versions.
 
+- Using Python's ``doctest`` module instead of depreacted
+  ``zope.testing.doctest``.
 
 
 0.1.0 (2008-04-21)

Modified: zc.comment/trunk/src/zc/comment/tests.py
===================================================================
--- zc.comment/trunk/src/zc/comment/tests.py	2011-03-02 07:48:33 UTC (rev 120661)
+++ zc.comment/trunk/src/zc/comment/tests.py	2011-03-02 07:49:25 UTC (rev 120662)
@@ -17,7 +17,7 @@
 $Id: tests.py 678 2005-02-22 21:49:28Z gary $
 """
 import unittest
-from zope.testing import doctest
+import doctest
 from zope.app.testing import placelesssetup
 
 def test_suite():
@@ -27,6 +27,3 @@
             setUp=placelesssetup.setUp, tearDown=placelesssetup.tearDown,
             optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS),
         ))
-
-if __name__ == '__main__':
-    unittest.main(defaultTest='test_suite')



More information about the checkins mailing list