Permalink
Browse files

Skip hidden directories correctly

  • Loading branch information...
myint committed May 7, 2013
1 parent 673a13a commit 8d8f70684310021c97eb81c481d8e5e2dfb1ea70
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/acid.py
View
@@ -337,9 +337,9 @@ def check(opts, args):
filenames += [os.path.join(root, f) for f in children
if f.endswith('.py') and
not f.startswith('.')]
- for d in directories:
- if d.startswith('.'):
- directories.remove(d)
+
+ directories[:] = [d for d in directories
+ if not d.startswith('.')]
else:
verbose_message = '---> Testing with '
try:

0 comments on commit 8d8f706

Please sign in to comment.