diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2015-09-03 22:30:45 +0700 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-09-07 20:55:03 +0300 |
commit | 98c463a64b6f5b46ddaa1cff21037463a50da2bd (patch) | |
tree | ea3793d250c477a5462139510675ef487e21a82f | |
parent | 78e45103420511807a500325db5f18c679575e16 (diff) | |
download | cmdtest-98c463a64b6f5b46ddaa1cff21037463a50da2bd.tar.gz |
coverage-4.0a6 compatibility
coverage 4.0a6 no longer generates .coverage file, so
check first if it exists before attempting removal.
-rw-r--r-- | setup.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -77,7 +77,8 @@ class Check(Command): subprocess.check_call( ['python', '-m', 'CoverageTestRunner', '--ignore-missing-from', 'without-tests']) - os.remove('.coverage') + if os.path.exists('.coverage'): + os.remove('.coverage') subprocess.check_call(['./cmdtest', 'echo-tests']) subprocess.check_call(['./cmdtest', 'sort-tests']) |