Skip to content

Commit

Permalink
Replace deprecated zope.testing.doctestunit import with doctest modul…
Browse files Browse the repository at this point in the history
…e from stdlib.
  • Loading branch information
thet committed Jan 25, 2016
1 parent b6df141 commit 6417aed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Changelog

Fixes:

- Replace deprecated ``zope.testing.doctestunit`` import with ``doctest``
module from stdlib.
[thet]

- Cleanup: Pep8, utf8 headers, whitespace fixes, readability, ReST-fixes,
doc-style, etc.
[jensens]
Expand Down
7 changes: 3 additions & 4 deletions plone/registry/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from zope.component import provideAdapter
from zope.component import testing
from zope.interface import Interface
from zope.testing import doctestunit
import doctest
import unittest

Expand Down Expand Up @@ -131,21 +130,21 @@ def test_auto_migration(self):

def test_suite():
return unittest.TestSuite([
doctestunit.DocFileSuite(
doctest.DocFileSuite(
'registry.rst',
package='plone.registry',
optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS,
setUp=setUp,
tearDown=testing.tearDown
),
doctestunit.DocFileSuite(
doctest.DocFileSuite(
'events.rst',
package='plone.registry',
optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS,
setUp=setUp,
tearDown=testing.tearDown
),
doctestunit.DocFileSuite(
doctest.DocFileSuite(
'field.rst',
package='plone.registry',
optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS,
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def read(*rnames):
'zope.event',
'zope.interface',
'zope.schema',
'zope.testing',
],
entry_points="""
# -*- Entry points: -*-
Expand Down

0 comments on commit 6417aed

Please sign in to comment.