[Checkins] SVN: zope.release/branches/3.4/src/zope/release/tests.py Avoid deprecation warnings for using zope.testing.doctest*
Marius Gedminas
marius at pov.lt
Fri Mar 26 11:30:14 EDT 2010
Log message for revision 110201:
Avoid deprecation warnings for using zope.testing.doctest*
Changed:
U zope.release/branches/3.4/src/zope/release/tests.py
-=-
Modified: zope.release/branches/3.4/src/zope/release/tests.py
===================================================================
--- zope.release/branches/3.4/src/zope/release/tests.py 2010-03-26 15:28:37 UTC (rev 110200)
+++ zope.release/branches/3.4/src/zope/release/tests.py 2010-03-26 15:30:14 UTC (rev 110201)
@@ -17,13 +17,9 @@
"""
__docformat__ = 'restructuredtext'
-import unittest
-from zope.testing import doctest
-from zope.testing.doctestunit import DocFileSuite
+import doctest
def test_suite():
- return unittest.TestSuite((
- DocFileSuite('README.txt',
- optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,
- ),
- ))
+ return doctest.DocFileSuite('README.txt',
+ optionflags=doctest.NORMALIZE_WHITESPACE
+ |doctest.ELLIPSIS)
More information about the checkins
mailing list