[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/tests/test.py Made the directory walker ignore directories starting with ', , ', and

Steve Alexander steve at z3u.com
Wed Aug 11 11:47:07 EDT 2004


Log message for revision 26998:
  Made the directory walker ignore directories starting with ',,', and
  directories called '.arch-ids'.
  


Changed:
  U   Zope3/trunk/src/zope/app/tests/test.py


-=-
Modified: Zope3/trunk/src/zope/app/tests/test.py
===================================================================
--- Zope3/trunk/src/zope/app/tests/test.py	2004-08-11 15:45:45 UTC (rev 26997)
+++ Zope3/trunk/src/zope/app/tests/test.py	2004-08-11 15:47:05 UTC (rev 26998)
@@ -567,13 +567,15 @@
         names = os.listdir(top)
     except os.error:
         return
+    exceptions = ('.', '..', '{arch}', '.arch-ids')
+    names = [name for name in names
+             if name not in exceptions
+             if not name.startswith(',,')]
     func(arg, top, names)
-    exceptions = ('.', '..', '{arch}', '_darcs')
     for name in names:
-        if name not in exceptions:
-            name = os.path.join(top, name)
-            if os.path.isdir(name):
-                walk_with_symlinks(name, func, arg)
+        name = os.path.join(top, name)
+        if os.path.isdir(name):
+            walk_with_symlinks(name, func, arg)
 
 def find_test_dir(dir):
     if os.path.exists(dir):



More information about the Zope3-Checkins mailing list