Skip to content

Commit

Permalink
- Using Python's doctest module instead of deprecated
Browse files Browse the repository at this point in the history
  ``zope.testing.doctest``.

- Removed deprecated slugs for ZPKG and ZCML.
  • Loading branch information
Michael Howitz committed May 19, 2011
1 parent 3587393 commit 5613746
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
9 changes: 9 additions & 0 deletions CHANGES.txt
@@ -1,6 +1,15 @@
CHANGES
=======

0.8.2 (unreleased)
------------------

- Using Python's ``doctest`` module instead of deprecated
``zope.testing.doctest``.

- Removed deprecated slugs for ZPKG and ZCML.


0.8.1 (2010-05-25)
------------------

Expand Down
3 changes: 0 additions & 3 deletions src/zc/table/SETUP.cfg

This file was deleted.

4 changes: 2 additions & 2 deletions src/zc/table/column.txt
Expand Up @@ -65,7 +65,7 @@ email addresses.
... ),
... )

Now, with this, we can create a table with input widgets. The columns don't
Now, with this, we can create a table with input widgets. The columns don't
need a context other than the items themselves, so we ignore that part of the
table formatter instantiation:

Expand Down Expand Up @@ -339,7 +339,7 @@ a bit table:
>>> request.form["test.MA==.1"] = "on"

>>> input = columns[1].input(data, request)
>>> from zope.testing.doctestunit import pprint
>>> from pprint import pprint
>>> pprint(input)
{'MA==': True,
'Mw==': False}
Expand Down
6 changes: 3 additions & 3 deletions src/zc/table/fieldcolumn.txt
Expand Up @@ -55,7 +55,7 @@ with names and email addresses:
... email = schema.TextLine(
... title=u'Email Address',
... constraint=re.compile('\w+@\w+([.]\w+)+$').match)
... salutation = schema.Choice(
... salutation = schema.Choice(
... title=u'Salutation',
... values = ['Mr','Ms'],
... )
Expand Down Expand Up @@ -92,7 +92,7 @@ email addresses.
... BindingContactColumn(IContact["salutation"])
... )

Now, with this, we can create a table with input widgets. The columns don't
Now, with this, we can create a table with input widgets. The columns don't
need a context other than the items themselves, so we ignore that part of the
table formatter instantiation:

Expand Down Expand Up @@ -475,7 +475,7 @@ a bit table:
>>> request.form["test.0.1"] = "on"

>>> input = columns[1].input(data, formatter)
>>> from zope.testing.doctestunit import pprint
>>> from pprint import pprint
>>> pprint(input)
{'0': True,
'3': False}
Expand Down
5 changes: 1 addition & 4 deletions src/zc/table/tests.py
Expand Up @@ -66,7 +66,7 @@ def fieldColumnSetUp(test):


def test_suite():
from zope.testing import doctest
import doctest
return unittest.TestSuite((
doctest.DocFileSuite('README.txt',
optionflags=doctest.NORMALIZE_WHITESPACE+doctest.ELLIPSIS,
Expand All @@ -82,6 +82,3 @@ def test_suite():
optionflags=doctest.NORMALIZE_WHITESPACE+doctest.ELLIPSIS,
),
))

if __name__ == '__main__':
unittest.main(defaultTest='test_suite')
1 change: 0 additions & 1 deletion src/zc/table/zc.table-configure.zcml

This file was deleted.

0 comments on commit 5613746

Please sign in to comment.