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

Michael Howitz mh at gocept.com
Wed Oct 6 02:22:29 EDT 2010


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

Changed:
  U   z3c.rml/trunk/CHANGES.txt
  U   z3c.rml/trunk/src/z3c/rml/tests/test_pagetemplate.py

-=-
Modified: z3c.rml/trunk/CHANGES.txt
===================================================================
--- z3c.rml/trunk/CHANGES.txt	2010-10-06 06:22:15 UTC (rev 117262)
+++ z3c.rml/trunk/CHANGES.txt	2010-10-06 06:22:29 UTC (rev 117263)
@@ -5,8 +5,10 @@
 1.0.0 (unreleased)
 ------------------
 
-- Nothing yet.
+- Using Python's ``doctest`` module instead of depreacted
+  ``zope.testing.doctest``.
 
+
 0.9.1 (2010-06-22)
 ------------------
 

Modified: z3c.rml/trunk/src/z3c/rml/tests/test_pagetemplate.py
===================================================================
--- z3c.rml/trunk/src/z3c/rml/tests/test_pagetemplate.py	2010-10-06 06:22:15 UTC (rev 117262)
+++ z3c.rml/trunk/src/z3c/rml/tests/test_pagetemplate.py	2010-10-06 06:22:29 UTC (rev 117263)
@@ -12,16 +12,14 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ###############################################################################
-"""Tests for the Book Documentation Module
+"""Tests for the Book Documentation Module"""
 
-$Id$
-"""
-__docformat__ = "reStructuredText"
+import doctest
 import unittest
-from zope.testing import doctest
 
+
 def test_suite():
-    return unittest.TestSuite((
-        doctest.DocFileSuite('../pagetemplate.txt',
-            optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS),
-        ))
+    return doctest.DocFileSuite(
+        '../pagetemplate.txt',
+        optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS)
+



More information about the checkins mailing list