Mercurial > p > roundup > code
diff run_tests.py @ 4026:c8b0a23ba38d
Fix issue2550493: hide 'hidden' files.
| author | Stefan Seefeld <stefan@seefeld.name> |
|---|---|
| date | Mon, 09 Feb 2009 17:47:12 +0000 |
| parents | 1343ae27dde9 |
| children | 25a6f93a17e1 |
line wrap: on
line diff
--- a/run_tests.py Thu Feb 05 14:18:27 2009 +0000 +++ b/run_tests.py Mon Feb 09 17:47:12 2009 +0000 @@ -448,7 +448,8 @@ 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)
