diff options
Diffstat (limited to 'py/config/TestUtil.py')
-rw-r--r-- | py/config/TestUtil.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/py/config/TestUtil.py b/py/config/TestUtil.py index ef33313665b..1eea3641ce5 100644 --- a/py/config/TestUtil.py +++ b/py/config/TestUtil.py @@ -483,10 +483,5 @@ def collocatedTest(name): collocatedTestWithOptions(name, "") def cleanDbDir(path): - - files = os.listdir(path) - - for filename in files: - if filename != "CVS" and filename != ".dummy": - fullpath = os.path.join(path, filename); - os.remove(fullpath) + for filename in [ os.path.join(path, f) for f in os.listdir(path) if f != ".gitignore"]: + os.remove(filename) |