Commit f062fdf2 authored by Tres Seaver's avatar Tres Seaver

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

parent fcc803ba
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)
------------------
......
......@@ -50,7 +50,6 @@ setup(name='transaction',
test_suite="transaction.tests",
tests_require = [
'zope.interface',
'zope.testing',
],
install_requires=[
'zope.interface',
......
......@@ -405,7 +405,7 @@ class Rollback(object):
def test_suite():
from zope.testing.doctest import DocTestSuite
from doctest import DocTestSuite
return DocTestSuite()
if __name__ == '__main__':
......
......@@ -405,7 +405,7 @@ class Rollback(object):
def test_suite():
from zope.testing.doctest import DocTestSuite
from doctest import DocTestSuite
return DocTestSuite()
# additional_tests is for setuptools "setup.py test" support
......
......@@ -148,7 +148,7 @@ class TestConnection:
obj.abort()
self.aborted.append(obj)
from zope.testing import doctest
import doctest
def test_suite():
return doctest.DocTestSuite()
......
......@@ -16,7 +16,7 @@
$Id$
"""
import unittest
from zope.testing import doctest
import doctest
def testRollbackRollsbackDataManagersThatJoinedLater():
......
......@@ -689,7 +689,7 @@ def test_addAfterCommitHook():
"""
def test_suite():
from zope.testing.doctest import DocTestSuite, DocFileSuite
from doctest import DocTestSuite, DocFileSuite
return unittest.TestSuite((
DocFileSuite('doom.txt'),
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