Skip to content

Commit

Permalink
Avoid to use zope.testing.doctestunit as it is now deprecated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Dec 28, 2009
1 parent 010e633 commit c067751
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/z3c/form/browser/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@
"""
__docformat__ = "reStructuredText"

import itertools
from doctest import DocFileSuite
import doctest
import itertools
import unittest

from zope.testing.doctestunit import DocFileSuite

from z3c.form import testing
from z3c.form import outputchecker
from z3c.form.ptcompat import AVAILABLE, Z3CPT_AVAILABLE
Expand Down
2 changes: 1 addition & 1 deletion src/z3c/form/field.txt
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ empty:
>>> manager.ignoreContext = True
>>> manager.update()

>>> from zope.testing.doctestunit import pprint
>>> from pprint import pprint
>>> pprint(manager.extract())
({'firstName': u'Stephan', 'lastName': u'Richter'}, ())

Expand Down
2 changes: 1 addition & 1 deletion src/z3c/form/form.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ the dictionary:
>>> editForm = PersonDictEditForm(None, request)
>>> editForm.update()

>>> from zope.testing.doctestunit import pprint
>>> from pprint import pprint
>>> pprint(personDict)
{'age': 5,
'gender': 'male',
Expand Down

0 comments on commit c067751

Please sign in to comment.