testing: Write the .coverage file.

We need to call save explicitly to make coverage write the
.coverage file.
This commit is contained in:
Umair Khan 2017-06-06 15:06:41 +05:00 committed by Tim Abbott
parent a926559889
commit 1d183eabf1
1 changed files with 2 additions and 0 deletions

View File

@ -328,6 +328,8 @@ if __name__ == "__main__":
cov.stop() cov.stop()
cov.save() cov.save()
cov.combine() cov.combine()
cov.data_suffix = False # Disable suffix so that filename is .coverage
cov.save()
if options.verbose_coverage: if options.verbose_coverage:
print("Printing coverage data") print("Printing coverage data")
cov.report(show_missing=False) cov.report(show_missing=False)