[Zope3-checkins] SVN: Zope3/trunk/src/zope/component/tests.py Add missing cleanup to zope.component unit tests.

Marius Gedminas marius at pov.lt
Sat Jan 20 07:59:03 EST 2007


Log message for revision 72132:
  Add missing cleanup to zope.component unit tests.
  
  

Changed:
  U   Zope3/trunk/src/zope/component/tests.py

-=-
Modified: Zope3/trunk/src/zope/component/tests.py
===================================================================
--- Zope3/trunk/src/zope/component/tests.py	2007-01-20 12:56:52 UTC (rev 72131)
+++ Zope3/trunk/src/zope/component/tests.py	2007-01-20 12:59:00 UTC (rev 72132)
@@ -981,7 +981,11 @@
                 else:
                     break
 
+def setUpRegistryTests(tests):
+    setUp()
+
 def tearDownRegistryTests(tests):
+    tearDown()
     import zope.event
     zope.event.subscribers.pop()
 
@@ -1008,6 +1012,7 @@
         doctest.DocFileSuite('factory.txt',
                              setUp=setUp, tearDown=tearDown),
         doctest.DocFileSuite('registry.txt', checker=checker,
+                             setUp=setUpRegistryTests,
                              tearDown=tearDownRegistryTests),
         doctest.DocFileSuite('event.txt',
                              setUp=setUp, tearDown=tearDown),



More information about the Zope3-Checkins mailing list