We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f333880 commit cb647cdCopy full SHA for cb647cd
coverage/results.py
@@ -146,10 +146,7 @@ def branch_stats(self):
146
stats = {}
147
for lnum in self._branch_lines():
148
exits = self.exit_counts[lnum]
149
- try:
150
- missing = len(missing_arcs[lnum])
151
- except KeyError:
152
- missing = 0
+ missing = len(missing_arcs[lnum])
153
stats[lnum] = (exits, exits - missing)
154
return stats
155
@@ -265,7 +262,7 @@ def __radd__(self, other):
265
262
# Implementing 0+Numbers allows us to sum() a list of Numbers.
266
263
if other == 0:
267
264
return self
268
- return NotImplemented
+ return NotImplemented # pragma: not covered (we never call it this way)
269
270
271
def _line_ranges(statements, lines):
0 commit comments