[Zope3-checkins] SVN: Zope3/trunk/src/zope/schema/ Included src/zope/schema/fields.txt among doctest files to be run. Made it

Marius Gedminas marius at pov.lt
Fri Feb 24 11:16:00 EST 2006


Log message for revision 41773:
  Included src/zope/schema/fields.txt among doctest files to be run.  Made it
  pass.  Fixed a punctuation mark.
  
  

Changed:
  U   Zope3/trunk/src/zope/schema/fields.txt
  U   Zope3/trunk/src/zope/schema/tests/test_docs.py

-=-
Modified: Zope3/trunk/src/zope/schema/fields.txt
===================================================================
--- Zope3/trunk/src/zope/schema/fields.txt	2006-02-24 14:49:07 UTC (rev 41772)
+++ Zope3/trunk/src/zope/schema/fields.txt	2006-02-24 16:16:00 UTC (rev 41773)
@@ -22,7 +22,7 @@
 because they contain other types, which may also be described and constrained.
 
 For instance, imagine a list that contains non-negative floats and enforces
-uniqueness, In a schema, this might be written as follows:
+uniqueness. In a schema, this might be written as follows:
 
   >>> from zope.interface import Interface
   >>> from zope.schema import List, Float
@@ -30,7 +30,7 @@
   ...     pricePoints = List(
   ...         title=u"Price Points",
   ...         unique=True,
-  ...         value_type=Float(title=u"Price", min=0)
+  ...         value_type=Float(title=u"Price", min=0.0)
   ...     )
 
 This indicates several things.

Modified: Zope3/trunk/src/zope/schema/tests/test_docs.py
===================================================================
--- Zope3/trunk/src/zope/schema/tests/test_docs.py	2006-02-24 14:49:07 UTC (rev 41772)
+++ Zope3/trunk/src/zope/schema/tests/test_docs.py	2006-02-24 16:16:00 UTC (rev 41773)
@@ -21,6 +21,7 @@
 def test_suite():
     return unittest.TestSuite((
         doctest.DocFileSuite('../sources.txt', optionflags=doctest.ELLIPSIS),
+        doctest.DocFileSuite('../fields.txt'),
         doctest.DocFileSuite('../README.txt'),
         ))
 



More information about the Zope3-Checkins mailing list