Code

Fix issue2550493: hide 'hidden' files.
[roundup.git] / run_tests.py
index c54375307b4a3a055751d0708a1ec52efc0b3009..d84f5901b12c62b25b44d3486f19c76be9246bf5 100644 (file)
@@ -448,7 +448,8 @@ def walk_with_symlinks(top, func, arg):
     cycles in your Zope sandbox, so don't do that.
     """
     try:
-        names = os.listdir(top)
+        # Prevent 'hidden' files (those starting with '.') from being considered.
+        names = [f for f in os.listdir(top) if not f.startswith('.')]
     except os.error:
         return
     func(arg, top, names)