[Zope3-checkins]
SVN: Zope3/branches/jim-adapter/src/zope/component/globalregistry.py
Fixed a bug in the test cleanup support.
Jim Fulton
jim at zope.com
Tue Feb 28 18:26:46 EST 2006
Log message for revision 65623:
Fixed a bug in the test cleanup support.
Changed:
U Zope3/branches/jim-adapter/src/zope/component/globalregistry.py
-=-
Modified: Zope3/branches/jim-adapter/src/zope/component/globalregistry.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/component/globalregistry.py 2006-02-28 23:26:00 UTC (rev 65622)
+++ Zope3/branches/jim-adapter/src/zope/component/globalregistry.py 2006-02-28 23:26:46 UTC (rev 65623)
@@ -144,17 +144,12 @@
#
####################################################################
-def _resetBase():
- # globally available singleton
- global base
- base = BaseGlobalComponents('base')
+base = BaseGlobalComponents('base')
from zope.testing.cleanup import addCleanUp
-addCleanUp(_resetBase)
+addCleanUp(lambda: base.__init__('base'))
del addCleanUp
-# set it up for the first time
-_resetBase()
class NamedGlobalComponents(BaseGlobalComponents):
More information about the Zope3-Checkins
mailing list