[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/locking/tests.py Added code to clean up the zope.event.subscriber list.

Jim Fulton jim at zope.com
Thu Feb 3 18:06:30 EST 2005


Log message for revision 29030:
  Added code to clean up the zope.event.subscriber list.
  

Changed:
  U   Zope3/trunk/src/zope/app/locking/tests.py

-=-
Modified: Zope3/trunk/src/zope/app/locking/tests.py
===================================================================
--- Zope3/trunk/src/zope/app/locking/tests.py	2005-02-03 18:20:33 UTC (rev 29029)
+++ Zope3/trunk/src/zope/app/locking/tests.py	2005-02-03 23:06:30 UTC (rev 29030)
@@ -19,6 +19,7 @@
 
 import sys, unittest
 from zope.component.tests.placelesssetup import PlacelessSetup
+import zope.event
 from zope.testing import doctest
 from transaction import abort
 
@@ -84,8 +85,8 @@
         db.close()
     ps.tearDown()
     del test._storage
+    zope.event.subscribers.pop()
 
-
 def test_suite():
     return doctest.DocFileSuite('README.txt', setUp=setUp, tearDown=tearDown,
                                 optionflags=(doctest.ELLIPSIS)



More information about the Zope3-Checkins mailing list