[Zope3-checkins] SVN: zope.testing/trunk/ Deprecate zope.testing.exceptions as well.
Lennart Regebro
regebro at gmail.com
Fri Apr 30 12:41:02 EDT 2010
Log message for revision 111643:
Deprecate zope.testing.exceptions as well.
Changed:
U zope.testing/trunk/CHANGES.txt
U zope.testing/trunk/src/zope/testing/exceptions.py
-=-
Modified: zope.testing/trunk/CHANGES.txt
===================================================================
--- zope.testing/trunk/CHANGES.txt 2010-04-30 16:24:41 UTC (rev 111642)
+++ zope.testing/trunk/CHANGES.txt 2010-04-30 16:41:02 UTC (rev 111643)
@@ -4,10 +4,11 @@
3.9.5 (Unreleased)
==================
-- Deprecated zope.testing.testrunner. It has been copied to a separate
- zope.testrunner module, and will be removed from zope.testing in 4.0.0,
- together with zope.testing.doctest.
+- Deprecated zope.testing.testrunner and zope.testing.exceptions. They have
+ been moved to a separate zope.testrunner module, and will be removed from
+ zope.testing in 4.0.0, together with zope.testing.doctest.
+
3.9.4 (2010-04-13)
==================
Modified: zope.testing/trunk/src/zope/testing/exceptions.py
===================================================================
--- zope.testing/trunk/src/zope/testing/exceptions.py 2010-04-30 16:24:41 UTC (rev 111642)
+++ zope.testing/trunk/src/zope/testing/exceptions.py 2010-04-30 16:41:02 UTC (rev 111643)
@@ -16,5 +16,11 @@
$Id$
"""
+import warnings
+# Tell people to use the builtin module instead.
+warnings.warn('zope.testing.exceptions is deprecated in favour of '
+ 'zope.testrunner.exceptions', DeprecationWarning,
+ stacklevel=2)
+
class DocTestFailureException(AssertionError):
"""Use custom exception for doctest unit test failures"""
More information about the Zope3-Checkins
mailing list