[Zope3-checkins] 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
regebro at gmail.com
Mon Dec 21 13:52:30 EST 2009
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):
More information about the Zope3-Checkins
mailing list