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

Michael Howitz mh at gocept.com
Tue Dec 21 02:50:55 EST 2010


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

Changed:
  U   zam.api/trunk/CHANGES.txt
  U   zam.api/trunk/src/zam/api/tests.py

-=-
Modified: zam.api/trunk/CHANGES.txt
===================================================================
--- zam.api/trunk/CHANGES.txt	2010-12-21 07:49:37 UTC (rev 119021)
+++ zam.api/trunk/CHANGES.txt	2010-12-21 07:50:54 UTC (rev 119022)
@@ -9,8 +9,11 @@
 - Updated test set up and tests to run with ZTK 1.0 and current z3c.form
   version.
 
-- Removed dependency on `zope.app.twisted`.
+- Removed dependency on ``zope.app.twisted``.
 
+- Using Python's ``doctest`` module instead of depreacted
+  ``zope.testing.doctestunit``.
+
 Version 0.6.1 (2009-07-06)
 --------------------------
 

Modified: zam.api/trunk/src/zam/api/tests.py
===================================================================
--- zam.api/trunk/src/zam/api/tests.py	2010-12-21 07:49:37 UTC (rev 119021)
+++ zam.api/trunk/src/zam/api/tests.py	2010-12-21 07:50:54 UTC (rev 119022)
@@ -18,7 +18,6 @@
 
 import doctest
 import unittest
-from zope.testing import doctestunit
 from zope.app.testing import setup
 
 
@@ -27,16 +26,14 @@
     test.globs['rootFolder'] = site
     setup.setUpTestAsModule(test, name='README')
 
+
 def tearDown(test):
     setup.placefulTearDown()
 
 
 def test_suite():
     return unittest.TestSuite((
-        doctestunit.DocFileSuite('README.txt', 
+        doctest.DocFileSuite('README.txt',
             setUp=setUp, tearDown=tearDown,
             optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS),
         ))
-
-if __name__=='__main__':
-    unittest.main(defaultTest='test_suite')



More information about the checkins mailing list