[Zope-Checkins] SVN: Zope/branches/jim-fix-zclasses/lib/python/OFS/tests/testAppInitializer.py Made the test cleanup more robust by cleaning up any non-existent

Jim Fulton jim at zope.com
Tue Feb 15 07:24:44 EST 2005


Log message for revision 29148:
  Made the test cleanup more robust by cleaning up any non-existent
  directories found in Products.__path__.
  

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-15 12:24:37 UTC (rev 29147)
+++ Zope/branches/jim-fix-zclasses/lib/python/OFS/tests/testAppInitializer.py	2005-02-15 12:24:44 UTC (rev 29148)
@@ -75,7 +75,8 @@
         os.rmdir(TEMPPRODUCTS)
         os.rmdir(TEMPNAME)
         import Products
-        Products.__path__ = [d for d in Products.__path__ if d != TEMPPRODUCTS]
+        Products.__path__ = [d for d in Products.__path__
+                             if os.path.exists(d)]
 
     def configure(self, text):
         # We have to create a directory of our own since the existence



More information about the Zope-Checkins mailing list