Log message for revision 71818:
  Functional tests shouldn't use zope.app.testing.placelesssetup because that 
in itself
  creates an interaction and requests create interactions as well.
  

Changed:
  U   Products.Five/branches/1.5/viewlet/directives.txt
  U   Products.Five/branches/1.5/viewlet/tests.py

-=-
Modified: Products.Five/branches/1.5/viewlet/directives.txt
===================================================================
--- Products.Five/branches/1.5/viewlet/directives.txt   2007-01-08 16:30:24 UTC 
(rev 71817)
+++ Products.Five/branches/1.5/viewlet/directives.txt   2007-01-08 16:53:59 UTC 
(rev 71818)
@@ -530,3 +530,8 @@
 
   >>> import shutil
   >>> shutil.rmtree(temp_dir)
+
+Clear registries:
+
+  >>> from zope.testing.cleanup import cleanUp
+  >>> cleanUp()

Modified: Products.Five/branches/1.5/viewlet/tests.py
===================================================================
--- Products.Five/branches/1.5/viewlet/tests.py 2007-01-08 16:30:24 UTC (rev 
71817)
+++ Products.Five/branches/1.5/viewlet/tests.py 2007-01-08 16:53:59 UTC (rev 
71818)
@@ -84,12 +84,10 @@
     setup.placefulTearDown()
 
 def test_suite():
-    return unittest.TestSuite((
+    return unittest.TestSuite([
         FunctionalDocFileSuite('README.txt'),
-        FunctionalDocFileSuite('directives.txt',
-                     setUp=setUp, tearDown=tearDown
-                     ),
-        ))
+        FunctionalDocFileSuite('directives.txt'),
+        ])
 
 if __name__ == '__main__':
     unittest.main(defaultTest='test_suite')

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to