diff options
-rwxr-xr-x | tests/runalltests.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/runalltests.py b/tests/runalltests.py index 6b6b25f..424f510 100755 --- a/tests/runalltests.py +++ b/tests/runalltests.py @@ -218,7 +218,11 @@ class TestSuiteWrapper(unittest.TestCase): if name == 'logs': continue - shutil.rmtree(os.path.join(data_store_dir, name)) + path = os.path.join(data_store_dir, name) + if os.path.isdir(path): + shutil.rmtree(path) + else: + os.unlink(path) class TimedTestResult(unittest._TextTestResult): |