Log message for revision 40438: Clean up after ourselves. Changed: U Zope/branches/Zope-2_8-branch/lib/python/AccessControl/tests/testZopeGuards.py
-=- Modified: Zope/branches/Zope-2_8-branch/lib/python/AccessControl/tests/testZopeGuards.py =================================================================== --- Zope/branches/Zope-2_8-branch/lib/python/AccessControl/tests/testZopeGuards.py 2005-11-30 23:52:43 UTC (rev 40437) +++ Zope/branches/Zope-2_8-branch/lib/python/AccessControl/tests/testZopeGuards.py 2005-12-01 01:55:42 UTC (rev 40438) @@ -419,10 +419,13 @@ _old_mgr = _old_policy = _marker = [] def setUp(self): - pass + self._wrapped_dicts = [] def tearDown( self ): self._restorePolicyAndManager() + for munged, orig in self._wrapped_dicts: + munged.update(orig) + del self._wrapped_dicts def _initPolicyAndManager(self, manager=None): from AccessControl.SecurityManagement import get_ident @@ -668,6 +671,8 @@ # tell whether they're executed. def _wrap_replaced_dict_callables(self, d): import __builtin__ + orig = d.copy() + self._wrapped_dicts.append((d, orig)) for k, v in d.items(): if callable(v) and v is not getattr(__builtin__, k, None): d[k] = FuncWrapper(k, v) _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins