[Zope-Checkins] CVS: ZODB/src/Persistence/tests - test_ExtensionClass.py:1.5

Jeremy Hylton jeremy at zope.com
Fri Feb 20 12:17:14 EST 2004


Update of /cvs-repository/ZODB/src/Persistence/tests
In directory cvs.zope.org:/tmp/cvs-serv27315

Modified Files:
	test_ExtensionClass.py 
Log Message:
Fiddling.

Add comment explaining try/except for ImportError.
Simplify test_suite().


=== ZODB/src/Persistence/tests/test_ExtensionClass.py 1.4 => 1.5 ===
--- ZODB/src/Persistence/tests/test_ExtensionClass.py:1.4	Fri Feb 20 12:12:39 2004
+++ ZODB/src/Persistence/tests/test_ExtensionClass.py	Fri Feb 20 12:17:13 2004
@@ -16,10 +16,14 @@
 $Id$
 """
 
-from Persistence import Persistent
+from doctest import DocTestSuite
 import pickle
 
+from Persistence import Persistent
+
 try:
+    # The _Persistence module is only compiled in a Zope checkout,
+    # where ExtensionClass is available.
     import Persistent._Persistence
 except ImportError:
     pass
@@ -499,12 +503,6 @@
 
     """
 
-from doctest import DocTestSuite
-import unittest
-
 def test_suite():
-    return unittest.TestSuite((
-        DocTestSuite(),
-        ))
+    return DocTestSuite()
 
-if __name__ == '__main__': unittest.main()




More information about the Zope-Checkins mailing list