diff options
Diffstat (limited to 'test/cleantests.py')
-rw-r--r-- | test/cleantests.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/cleantests.py b/test/cleantests.py index c38fd8f..36d5b9b 100644 --- a/test/cleantests.py +++ b/test/cleantests.py @@ -1,10 +1,16 @@ -# removes all files created during testing +# Copyright 2007 Baptiste Lepilleur and The JsonCpp Authors +# Distributed under MIT license, or public domain if desired and +# recognized in your jurisdiction. +# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE + +"""Removes all files created during testing.""" + import glob import os paths = [] for pattern in [ '*.actual', '*.actual-rewrite', '*.rewrite', '*.process-output' ]: - paths += glob.glob( 'data/' + pattern ) + paths += glob.glob('data/' + pattern) for path in paths: - os.unlink( path ) + os.unlink(path) |