Commit f062fdf2 authored by Tres Seaver's avatar Tres Seaver

Updated tests to remove use of deprecated ``zope.testing.doctest``.

parent fcc803ba
Changes Changes
======= =======
1.1.0 (unreleased) 1.0.1 (unreleased)
------------------ ------------------
- ... - Updated tests to remove use of deprecated ``zope.testing.doctest``.
1.0.0 (2009-07-24) 1.0.0 (2009-07-24)
------------------ ------------------
......
...@@ -50,7 +50,6 @@ setup(name='transaction', ...@@ -50,7 +50,6 @@ setup(name='transaction',
test_suite="transaction.tests", test_suite="transaction.tests",
tests_require = [ tests_require = [
'zope.interface', 'zope.interface',
'zope.testing',
], ],
install_requires=[ install_requires=[
'zope.interface', 'zope.interface',
......
...@@ -405,7 +405,7 @@ class Rollback(object): ...@@ -405,7 +405,7 @@ class Rollback(object):
def test_suite(): def test_suite():
from zope.testing.doctest import DocTestSuite from doctest import DocTestSuite
return DocTestSuite() return DocTestSuite()
if __name__ == '__main__': if __name__ == '__main__':
......
...@@ -405,7 +405,7 @@ class Rollback(object): ...@@ -405,7 +405,7 @@ class Rollback(object):
def test_suite(): def test_suite():
from zope.testing.doctest import DocTestSuite from doctest import DocTestSuite
return DocTestSuite() return DocTestSuite()
# additional_tests is for setuptools "setup.py test" support # additional_tests is for setuptools "setup.py test" support
......
...@@ -148,7 +148,7 @@ class TestConnection: ...@@ -148,7 +148,7 @@ class TestConnection:
obj.abort() obj.abort()
self.aborted.append(obj) self.aborted.append(obj)
from zope.testing import doctest import doctest
def test_suite(): def test_suite():
return doctest.DocTestSuite() return doctest.DocTestSuite()
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
$Id$ $Id$
""" """
import unittest import unittest
from zope.testing import doctest import doctest
def testRollbackRollsbackDataManagersThatJoinedLater(): def testRollbackRollsbackDataManagersThatJoinedLater():
......
...@@ -689,7 +689,7 @@ def test_addAfterCommitHook(): ...@@ -689,7 +689,7 @@ def test_addAfterCommitHook():
""" """
def test_suite(): def test_suite():
from zope.testing.doctest import DocTestSuite, DocFileSuite from doctest import DocTestSuite, DocFileSuite
return unittest.TestSuite(( return unittest.TestSuite((
DocFileSuite('doom.txt'), DocFileSuite('doom.txt'),
DocTestSuite(), DocTestSuite(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment