diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2015-09-03 22:34:30 +0700 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-09-07 20:55:49 +0300 |
commit | 59c137d4afcc406fe472e71feddd31f8ac0ab524 (patch) | |
tree | f0dac971c44ddc3b3210dbf59be05da477eb14b9 | |
parent | 5305f35d7eea17bd4f833ec65ecf8bf000dbe113 (diff) | |
download | obnam-59c137d4afcc406fe472e71feddd31f8ac0ab524.tar.gz |
coverage-4.0a6 compatibility
coverage 4.0a6 no longer generates .coverage file, so
check first if it exists before attempting removal.
-rwxr-xr-x | setup.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -191,7 +191,8 @@ class Check(Command): print "run unit tests" runcmd(['python', '-m', 'CoverageTestRunner', '--ignore-missing-from=without-tests']) - os.remove('.coverage') + if os.path.exists('.coverage'): + os.remove('.coverage') def run_yarn(self): for repo_format in self.get_wanted_formats(): |