[Zope3-checkins] SVN: Zope3/branches/3.3/src/zope/app/ Replace 'import doctest' with 'from zope.testing import doctest'.

Baiju M baiju.m.mail at gmail.com
Wed Jul 19 23:56:29 EDT 2006


Log message for revision 69217:
  Replace 'import doctest' with 'from zope.testing import doctest'.
  

Changed:
  U   Zope3/branches/3.3/src/zope/app/catalog/tests.py
  U   Zope3/branches/3.3/src/zope/app/demo/jobboard/tests.py
  U   Zope3/branches/3.3/src/zope/app/form/browser/ftests/test_i18n.py
  U   Zope3/branches/3.3/src/zope/app/form/browser/ftests/test_objectwidget.py
  U   Zope3/branches/3.3/src/zope/app/form/browser/tests/test_checkboxwidget.py
  U   Zope3/branches/3.3/src/zope/app/form/browser/tests/test_datetimewidget.py
  U   Zope3/branches/3.3/src/zope/app/form/browser/tests/test_datewidget.py
  U   Zope3/branches/3.3/src/zope/app/form/browser/tests/test_filewidget.py
  U   Zope3/branches/3.3/src/zope/app/form/browser/tests/test_floatwidget.py
  U   Zope3/branches/3.3/src/zope/app/form/browser/tests/test_intwidget.py
  U   Zope3/branches/3.3/src/zope/app/form/browser/tests/test_multicheckboxwidget.py
  U   Zope3/branches/3.3/src/zope/app/form/browser/tests/test_passwordwidget.py
  U   Zope3/branches/3.3/src/zope/app/form/browser/tests/test_radiowidget.py
  U   Zope3/branches/3.3/src/zope/app/form/browser/tests/test_sequencewidget.py
  U   Zope3/branches/3.3/src/zope/app/form/browser/tests/test_textareawidget.py
  U   Zope3/branches/3.3/src/zope/app/form/browser/tests/test_textwidget.py
  U   Zope3/branches/3.3/src/zope/app/form/tests/test_utility.py
  U   Zope3/branches/3.3/src/zope/app/principalannotation/tests.py
  U   Zope3/branches/3.3/src/zope/app/session/tests.py
  U   Zope3/branches/3.3/src/zope/app/sqlscript/browser/tests.py
  U   Zope3/branches/3.3/src/zope/app/twisted/ftp/tests/test_zopetrial.py

-=-
Modified: Zope3/branches/3.3/src/zope/app/catalog/tests.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/catalog/tests.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/catalog/tests.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -19,7 +19,7 @@
 $Id$
 """
 import unittest
-import doctest
+from zope.testing import doctest
 
 import BTrees.IFBTree
 

Modified: Zope3/branches/3.3/src/zope/app/demo/jobboard/tests.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/demo/jobboard/tests.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/demo/jobboard/tests.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -15,7 +15,8 @@
 
 $Id$
 """
-import unittest, doctest
+import unittest
+from zope.testing import doctest
 
 def test_suite():
     

Modified: Zope3/branches/3.3/src/zope/app/form/browser/ftests/test_i18n.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/form/browser/ftests/test_i18n.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/form/browser/ftests/test_i18n.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -16,7 +16,7 @@
 $Id$
 """
 import unittest
-import doctest
+from zope.testing import doctest
 from persistent import Persistent
 from zope.interface import Interface, implements
 from zope.schema import TextLine, Text, Int, List

Modified: Zope3/branches/3.3/src/zope/app/form/browser/ftests/test_objectwidget.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/form/browser/ftests/test_objectwidget.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/form/browser/ftests/test_objectwidget.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -15,8 +15,8 @@
 
 $Id$
 """
-import unittest, doctest
-
+import unittest
+from zope.testing import doctest
 from zope.interface import Interface, implements
 from zope.publisher.browser import TestRequest
 from zope.schema import Object, TextLine

Modified: Zope3/branches/3.3/src/zope/app/form/browser/tests/test_checkboxwidget.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/form/browser/tests/test_checkboxwidget.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/form/browser/tests/test_checkboxwidget.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -15,8 +15,8 @@
 
 $Id$
 """
-import unittest, doctest
-
+import unittest
+from zope.testing import doctest
 from zope.app.form.interfaces import IInputWidget
 from zope.app.form.browser import CheckBoxWidget
 from zope.publisher.browser import TestRequest

Modified: Zope3/branches/3.3/src/zope/app/form/browser/tests/test_datetimewidget.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/form/browser/tests/test_datetimewidget.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/form/browser/tests/test_datetimewidget.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -16,7 +16,8 @@
 $Id$
 """
 import datetime
-import unittest, doctest
+import unittest
+from zope.testing import doctest
 
 from zope.schema import Datetime
 from zope.datetime import parseDatetimetz, tzinfo

Modified: Zope3/branches/3.3/src/zope/app/form/browser/tests/test_datewidget.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/form/browser/tests/test_datewidget.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/form/browser/tests/test_datewidget.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -16,8 +16,8 @@
 $Id$
 """
 import datetime
-import unittest, doctest
-
+import unittest
+from zope.testing import doctest
 from zope.datetime import parseDatetimetz
 from zope.schema import Date
 from zope.interface.verify import verifyClass

Modified: Zope3/branches/3.3/src/zope/app/form/browser/tests/test_filewidget.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/form/browser/tests/test_filewidget.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/form/browser/tests/test_filewidget.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -15,8 +15,8 @@
 
 $Id$
 """
-import unittest, doctest
-
+import unittest
+from zope.testing import doctest
 from StringIO import StringIO
 from zope.app.form.interfaces import IInputWidget
 from zope.app.form.browser import FileWidget

Modified: Zope3/branches/3.3/src/zope/app/form/browser/tests/test_floatwidget.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/form/browser/tests/test_floatwidget.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/form/browser/tests/test_floatwidget.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -15,7 +15,8 @@
 
 $Id$
 """
-import unittest, doctest
+import unittest
+from zope.testing import doctest
 from zope.app.form.browser.tests.test_browserwidget import SimpleInputWidgetTest
 from zope.app.form.interfaces import IInputWidget
 from zope.app.form.browser import FloatWidget

Modified: Zope3/branches/3.3/src/zope/app/form/browser/tests/test_intwidget.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/form/browser/tests/test_intwidget.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/form/browser/tests/test_intwidget.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -15,7 +15,8 @@
 
 $Id$
 """
-import unittest, doctest
+import unittest
+from zope.testing import doctest
 from unittest import main, makeSuite
 from zope.app.form.browser.tests.test_browserwidget import SimpleInputWidgetTest
 from zope.app.form.interfaces import IInputWidget

Modified: Zope3/branches/3.3/src/zope/app/form/browser/tests/test_multicheckboxwidget.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/form/browser/tests/test_multicheckboxwidget.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/form/browser/tests/test_multicheckboxwidget.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -15,7 +15,8 @@
 
 $Id$
 """
-import unittest, doctest
+import unittest
+from zope.testing import doctest
 from zope.interface import Interface, implements
 from zope.publisher.browser import TestRequest
 from zope.schema import Choice, List

Modified: Zope3/branches/3.3/src/zope/app/form/browser/tests/test_passwordwidget.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/form/browser/tests/test_passwordwidget.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/form/browser/tests/test_passwordwidget.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -15,8 +15,8 @@
 
 $Id$
 """
-import unittest, doctest
-
+import unittest
+from zope.testing import doctest
 from zope.app.form.interfaces import IInputWidget
 from zope.app.form.browser import PasswordWidget
 from zope.app.form.browser.tests.test_browserwidget import SimpleInputWidgetTest

Modified: Zope3/branches/3.3/src/zope/app/form/browser/tests/test_radiowidget.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/form/browser/tests/test_radiowidget.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/form/browser/tests/test_radiowidget.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -15,7 +15,8 @@
 
 $Id$
 """
-import unittest, doctest
+import unittest
+from zope.testing import doctest
 from zope.interface import Interface, implements
 from zope.interface.verify import verifyClass
 from zope.publisher.browser import TestRequest

Modified: Zope3/branches/3.3/src/zope/app/form/browser/tests/test_sequencewidget.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/form/browser/tests/test_sequencewidget.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/form/browser/tests/test_sequencewidget.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -15,8 +15,8 @@
 
 $Id$
 """
-import unittest, doctest
-
+import unittest
+from zope.testing import doctest
 from zope.schema import Tuple, List, TextLine
 from zope.schema.interfaces import ITextLine, ValidationError
 from zope.publisher.browser import TestRequest

Modified: Zope3/branches/3.3/src/zope/app/form/browser/tests/test_textareawidget.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/form/browser/tests/test_textareawidget.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/form/browser/tests/test_textareawidget.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -15,8 +15,8 @@
 
 $Id$
 """
-import unittest, doctest
-
+import unittest
+from zope.testing import doctest
 from zope.app.form.interfaces import IInputWidget
 from zope.app.form.browser import TextAreaWidget
 from zope.app.form.browser.tests.test_browserwidget import SimpleInputWidgetTest

Modified: Zope3/branches/3.3/src/zope/app/form/browser/tests/test_textwidget.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/form/browser/tests/test_textwidget.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/form/browser/tests/test_textwidget.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -16,9 +16,8 @@
 $Id$
 """
 import datetime
-import doctest
 import unittest
-
+from zope.testing import doctest
 from zope.interface.verify import verifyClass
 from zope.schema import TextLine
 from zope.publisher.browser import TestRequest

Modified: Zope3/branches/3.3/src/zope/app/form/tests/test_utility.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/form/tests/test_utility.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/form/tests/test_utility.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -15,8 +15,8 @@
 
 $Id$
 """
-import doctest
 
+from zope.testing import doctest
 import zope.security.checker
 from zope.interface import Interface, implements
 from zope.component.interfaces import IViewFactory, ComponentLookupError

Modified: Zope3/branches/3.3/src/zope/app/principalannotation/tests.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/principalannotation/tests.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/principalannotation/tests.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -15,7 +15,7 @@
 
 $Id$
 """
-import doctest
+from zope.testing import doctest
 from unittest import TestCase, TestLoader, TextTestRunner
 
 import zope.component

Modified: Zope3/branches/3.3/src/zope/app/session/tests.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/session/tests.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/session/tests.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -16,7 +16,8 @@
 $Id$
 """
 from cStringIO import StringIO
-import unittest, doctest, os, os.path, sys
+import unittest, os, os.path, sys
+from zope.testing import doctest
 from zope.app import zapi
 from zope.app.testing import ztapi, placelesssetup
 

Modified: Zope3/branches/3.3/src/zope/app/sqlscript/browser/tests.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/sqlscript/browser/tests.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/sqlscript/browser/tests.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -15,7 +15,8 @@
 
 $Id$
 """
-import unittest, doctest
+import unittest
+from zope.testing import doctest
 
 def test_suite():
     return unittest.TestSuite((

Modified: Zope3/branches/3.3/src/zope/app/twisted/ftp/tests/test_zopetrial.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/twisted/ftp/tests/test_zopetrial.py	2006-07-19 22:05:20 UTC (rev 69216)
+++ Zope3/branches/3.3/src/zope/app/twisted/ftp/tests/test_zopetrial.py	2006-07-20 03:56:26 UTC (rev 69217)
@@ -25,7 +25,7 @@
 __docformat__="restructuredtext"
 
 import unittest
-import doctest
+from zope.testing import doctest
 import sets
 import time
 import sys



More information about the Zope3-Checkins mailing list