SVN: zope.testing/trunk/src/zope/testing/doctest Added back the dotestunit imports, but Deprecated the whole module, including doctest. It's in stdlib now.

Lennart Regebro <[email protected]>
Newsgroups gmane.comp.web.zope.zope3.cvs
Message-ID <20091221185230.1724094182__19018.5317690068$1261421562$gmane$org@cvs.zope.org>
Log message for revision 106828:
  Added back the dotestunit imports, but Deprecated the whole module, including doctest. It's in stdlib now.
  

Changed:
  U   zope.testing/trunk/src/zope/testing/doctest.py
  U   zope.testing/trunk/src/zope/testing/doctestunit.py

-=-
Modified: zope.testing/trunk/src/zope/testing/doctest.py
===================================================================
--- zope.testing/trunk/src/zope/testing/doctest.py	2009-12-21 18:34:51 UTC (rev 106827)
+++ zope.testing/trunk/src/zope/testing/doctest.py	2009-12-21 18:52:29 UTC (rev 106828)
@@ -105,6 +105,10 @@
 warnings.filterwarnings("ignore", "is_private", DeprecationWarning,
                         __name__, 0)
 
+# Tell people to use the builtin module instead.
+warnings.warn('zope.testing.doctest is deprecated in favour of '
+              'the Python standard library doctest module', DeprecationWarning)
+
 class UnusedFootnoteWarning(Warning):
     """Warn about a footnote that is defined, but never referenced."""
 

Modified: zope.testing/trunk/src/zope/testing/doctestunit.py
===================================================================
--- zope.testing/trunk/src/zope/testing/doctestunit.py	2009-12-21 18:34:51 UTC (rev 106827)
+++ zope.testing/trunk/src/zope/testing/doctestunit.py	2009-12-21 18:52:29 UTC (rev 106828)
@@ -19,6 +19,13 @@
 $Id$
 """
 
+import warnings
+warnings.warn('zope.testing.doctest is deprecated in favour of '
+              'the Python standard library doctest module', DeprecationWarning)
+
+from doctest import DocFileSuite, DocTestSuite
+from doctest import debug_src, debug
+
 def pprint():
     from pprint import PrettyPrinter
     def pprint(ob, **opts):
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.