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

Michael Howitz mh at gocept.com
Fri Mar 18 03:44:41 EDT 2011


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

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

-=-
Modified: zc.i18n/trunk/CHANGES.txt
===================================================================
--- zc.i18n/trunk/CHANGES.txt	2011-03-18 07:40:34 UTC (rev 121019)
+++ zc.i18n/trunk/CHANGES.txt	2011-03-18 07:44:41 UTC (rev 121020)
@@ -5,7 +5,8 @@
 0.7.1 (unreleased)
 ------------------
 
-- ...
+- Using Python's ``doctest`` module instead of depreacted
+  ``zope.testing.doctest``.
 
 0.7.0 (2009-07-24)
 ------------------

Modified: zc.i18n/trunk/src/zc/i18n/tests.py
===================================================================
--- zc.i18n/trunk/src/zc/i18n/tests.py	2011-03-18 07:40:34 UTC (rev 121019)
+++ zc.i18n/trunk/src/zc/i18n/tests.py	2011-03-18 07:44:41 UTC (rev 121020)
@@ -12,13 +12,10 @@
 #
 ##############################################################################
 import unittest
-from zope.testing import doctest
+import doctest
 
 def test_suite():
     return unittest.TestSuite((
         doctest.DocFileSuite('duration.txt'),
         doctest.DocTestSuite('zc.i18n.date')
         ))
-
-if __name__ == '__main__':
-    unittest.main(defaultTest='test_suite')



More information about the checkins mailing list