Output coverage to coverage.xml.

This avoids https://bitbucket.org/ned/coveragepy/issues/400/
This commit is contained in:
Florian Bruhin 2015-08-31 07:41:06 +02:00
parent 79c1867e6c
commit 9e6bcb97ca
2 changed files with 3 additions and 3 deletions

View File

@ -14,4 +14,4 @@ exclude_lines =
if __name__ == ["']__main__["']:
[xml]
output=.coverage.xml
output=coverage.xml

View File

@ -143,7 +143,7 @@ def main():
utils.change_cwd()
try:
with open('.coverage.xml', encoding='utf-8') as f:
with open('coverage.xml', encoding='utf-8') as f:
messages = check(f, PERFECT_FILES)
except Skipped as e:
print(e)
@ -152,7 +152,7 @@ def main():
for msg in messages:
print(msg)
os.remove('.coverage.xml')
os.remove('coverage.xml')
return 1 if messages else 0