Commit fedd853d0e3d6ba8765fe99d8d0a12af48fca17d
1 parent
96be50b7
Exists in
master
and in
39 other branches
Only erase coverage data_file if it exists
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
runtests.py
@@ -23,6 +23,7 @@ def runtests(): | @@ -23,6 +23,7 @@ def runtests(): | ||
23 | 23 | ||
24 | 24 | ||
25 | if __name__ == '__main__': | 25 | if __name__ == '__main__': |
26 | - os.remove('.coverage') | 26 | + if os.path.exists('.coverage'): |
27 | + os.remove('.coverage') | ||
27 | coverage.process_startup() | 28 | coverage.process_startup() |
28 | runtests() | 29 | runtests() |