From 6d0b2c42a5b6c8084bce443fc77c6094fcf22a19 2012-03-14 00:23:29 From: Paul Ivanov Date: 2012-03-14 00:23:29 Subject: [PATCH] only delete .rst and .png in the tests directory --- diff --git a/tests/test_simple.py b/tests/test_simple.py index 55067f4..d436cd7 100644 --- a/tests/test_simple.py +++ b/tests/test_simple.py @@ -6,8 +6,8 @@ import glob def clean_dir(): "Remove .rst files created during conversion" - map(os.remove, glob.glob("*.rst")) - map(os.remove, glob.glob("*.png")) + map(os.remove, glob.glob("./tests/*.rst")) + map(os.remove, glob.glob("./tests/*.png")) @nt.with_setup(clean_dir, clean_dir)