[Zope-Checkins] SVN: Zope/branches/jim-fix-zclasses/lib/python/OFS/tests/testAppInitializer.py Added missing cleanup code to return Products.__path__ to it's

Jim Fulton jim at zope.com
Mon Feb 7 07:35:52 EST 2005


Log message for revision 29065:
  Added missing cleanup code to return Products.__path__ to it's
  original state.
  

Changed:
  U   Zope/branches/jim-fix-zclasses/lib/python/OFS/tests/testAppInitializer.py

-=-
Modified: Zope/branches/jim-fix-zclasses/lib/python/OFS/tests/testAppInitializer.py
===================================================================
--- Zope/branches/jim-fix-zclasses/lib/python/OFS/tests/testAppInitializer.py	2005-02-06 15:19:08 UTC (rev 29064)
+++ Zope/branches/jim-fix-zclasses/lib/python/OFS/tests/testAppInitializer.py	2005-02-07 12:35:52 UTC (rev 29065)
@@ -74,6 +74,8 @@
         App.config.setConfiguration(original_config)
         os.rmdir(TEMPPRODUCTS)
         os.rmdir(TEMPNAME)
+        import Products
+        Products.__path__ = [d for d in Products.__path__ if d != TEMPPRODUCTS]
 
     def configure(self, text):
         # We have to create a directory of our own since the existence



More information about the Zope-Checkins mailing list