[Zodb-checkins] CVS: Zope3/src/transaction/tests - test_util.py:1.1.2.2

Fred L. Drake, Jr. fred at zope.com
Thu Feb 12 17:40:51 EST 2004


Update of /cvs-repository/Zope3/src/transaction/tests
In directory cvs.zope.org:/tmp/cvs-serv12414

Modified Files:
      Tag: zope3-zodb3-devel-branch
	test_util.py 
Log Message:
use doctest.DocTestSuite to avoid dependence on zope.testing, which
isn't always available


=== Zope3/src/transaction/tests/test_util.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/transaction/tests/test_util.py:1.1.2.1	Fri Jan 23 13:25:05 2004
+++ Zope3/src/transaction/tests/test_util.py	Thu Feb 12 17:40:50 2004
@@ -16,11 +16,10 @@
 $Id$
 """
 import unittest
-from zope.testing.doctestunit import DocTestSuite
+from doctest import DocTestSuite
 
 def test_suite():
-    return unittest.TestSuite((
-        DocTestSuite('transaction.util'),
-        ))
+    return DocTestSuite('transaction.util')
 
-if __name__ == '__main__': unittest.main()
+if __name__ == '__main__':
+    unittest.main(defaultTest='test_suite')




More information about the Zodb-checkins mailing list