diff options
author | Judson Neer <judson.neer@gmail.com> | 2021-01-05 08:53:19 -0800 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-01-06 13:50:13 -0500 |
commit | 051bdf23b5d86a15ada43523c00f8f3462063ad6 (patch) | |
tree | 5a726432bb9793a1fef67bb827402667c6ff5763 /coverage/summary.py | |
parent | 7ff93a9740da5dec4eba6c6cad288d25a472d75a (diff) | |
download | python-coveragepy-git-051bdf23b5d86a15ada43523c00f8f3462063ad6.tar.gz |
Always output TOTAL line.
Diffstat (limited to 'coverage/summary.py')
-rw-r--r-- | coverage/summary.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/summary.py b/coverage/summary.py index 986cd2f2..0c7fa551 100644 --- a/coverage/summary.py +++ b/coverage/summary.py @@ -120,8 +120,8 @@ class SummaryReporter(object): for line in lines: self.writeout(line[0]) - # Write a TOTAl line if we had more than one file. - if self.total.n_files > 1: + # Write a TOTAL line if we had at least one file. + if self.total.n_files > 0: self.writeout(rule) args = ("TOTAL", self.total.n_statements, self.total.n_missing) if self.branches: |