Commit 2b97a4ed authored by Jim Fulton's avatar Jim Fulton

Made the test cleanup more robust by cleaning up any non-existent

directories found in Products.__path__.
parent 5f2ac005
......@@ -75,7 +75,8 @@ class TestInitialization( unittest.TestCase ):
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment