Christopher Dunn | f986423 | 2007-06-14 21:01:26 +0000 | [diff] [blame] | 1 | # removes all files created during testing |
2 | import glob | ||||
3 | import os | ||||
4 | |||||
5 | paths = [] | ||||
6 | for pattern in [ '*.actual', '*.actual-rewrite', '*.rewrite', '*.process-output' ]: | ||||
Christopher Dunn | 494950a | 2015-01-24 15:29:52 -0600 | [diff] [blame] | 7 | paths += glob.glob('data/' + pattern) |
Christopher Dunn | f986423 | 2007-06-14 21:01:26 +0000 | [diff] [blame] | 8 | |
9 | for path in paths: | ||||
Christopher Dunn | 494950a | 2015-01-24 15:29:52 -0600 | [diff] [blame] | 10 | os.unlink(path) |