diff options
author | Ionel Cristian Maries <contact@ionelmc.ro> | 2015-06-28 22:41:53 +0300 |
---|---|---|
committer | Ionel Cristian Maries <contact@ionelmc.ro> | 2015-06-28 22:41:53 +0300 |
commit | c6dfb5b69d8211fc25aca06dc2c97e492d9b334c (patch) | |
tree | 0a30b8c347dc1994eae1a43a9f7cc3029b42312e /coverage/html.py | |
parent | 19200e548f72609d1fb7637ffdd45f1dacf5c5e8 (diff) | |
download | python-coveragepy-c6dfb5b69d8211fc25aca06dc2c97e492d9b334c.tar.gz |
Make return codes consistent: 1 for no data and 2 for fail_under. Now the `report` command will properly report `No data to report` if there's no data.
Diffstat (limited to 'coverage/html.py')
-rw-r--r-- | coverage/html.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/coverage/html.py b/coverage/html.py index 9148f42..da23935 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -126,8 +126,7 @@ class HtmlReporter(Reporter): self.index_file() self.make_local_static_report_files() - - return self.totals.pc_covered + return self.totals.n_statements and self.totals.pc_covered def make_local_static_report_files(self): """Make local instances of static files for HTML report.""" |