[Zope-CVS] CVS: Zope3 - ut.py:1.3

R. David Murray bitz@bitdance.com
Tue, 13 Aug 2002 16:09:00 -0400


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv918

Modified Files:
	ut.py 
Log Message:
I started to just edit this file to fix a grammer error, but if I understand
the comments on PR 7 correctly, then there is also some advice missing
from the comments (ie: the necessity of calling CleanUp.tearDown).
So I added it.  Someone correct me if I'm wrong.


=== Zope3/ut.py 1.2 => 1.3 ===
--- Zope3/ut.py:1.2	Mon Jun 10 19:27:34 2002
+++ Zope3/ut.py	Tue Aug 13 16:08:59 2002
@@ -24,8 +24,10 @@
 # If your tests change any global registries, then uncomment the
 # following import and include CleanUp as a base class of your
 # test. It provides a setUp and tearDown that clear global data that
-# has registered with the test cleanup framework.  Don't use this
-# tests outside the Zope package.
+# has registered with the test cleanup framework.  If your class has
+* its own setUp or tearDown, make sure you call the CleanUp setUp and
+* tearDown from them, or the benefits of using CleanUp will be lost.
+* Don't use CleanUp based tests outside the Zope package.
 
 # from Zope.Testing.CleanUp import CleanUp # Base class w registry cleanup