summaryrefslogtreecommitdiff
path: root/coverage/summary.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-12-25 07:51:02 -0500
committerNed Batchelder <ned@nedbatchelder.com>2018-12-25 07:51:02 -0500
commit31a42af7739f55033f122b28eb4beb0bb4ffdafd (patch)
treea91c47c24f30f053e4e68e266ff83db19d1b52f2 /coverage/summary.py
parentdcb07762bfc91dec3782096ab6dae995e7c6631a (diff)
downloadpython-coveragepy-git-31a42af7739f55033f122b28eb4beb0bb4ffdafd.tar.gz
Sort the text missing results by line number, not kind
Diffstat (limited to 'coverage/summary.py')
-rw-r--r--coverage/summary.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/coverage/summary.py b/coverage/summary.py
index 95afbcf0..e79592b9 100644
--- a/coverage/summary.py
+++ b/coverage/summary.py
@@ -110,14 +110,7 @@ class SummaryReporter(Reporter):
args += (nums.n_branches, nums.n_partial_branches)
args += (nums.pc_covered_str,)
if self.config.show_missing:
- missing_fmtd = analysis.missing_formatted()
- if self.branches:
- branches_fmtd = analysis.arcs_missing_formatted()
- if branches_fmtd:
- if missing_fmtd:
- missing_fmtd += ", "
- missing_fmtd += branches_fmtd
- args += (missing_fmtd,)
+ args += (analysis.missing_formatted(branches=True),)
text = fmt_coverage % args
# Add numeric percent coverage so that sorting makes sense.
args += (nums.pc_covered,)