From 2c00b87b47d164ecd67de21df8caa38cd9b681ab Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 18 Apr 2016 17:33:03 -0400 Subject: Use ->exit for missed branches in the textual report. #469 --- coverage/results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/results.py') diff --git a/coverage/results.py b/coverage/results.py index dc93f3f..7853848 100644 --- a/coverage/results.py +++ b/coverage/results.py @@ -96,7 +96,7 @@ class Analysis(object): for line, exits in line_exits: for ex in sorted(exits): if line not in missing: - pairs.append('%d->%d' % (line, ex)) + pairs.append("%d->%s" % (line, (ex if ex > 0 else "exit"))) return ', '.join(pairs) def arcs_unpredicted(self): -- cgit v1.2.1