diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-09-29 06:33:06 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-09-29 06:35:22 -0400 |
commit | 789f1755333cad44115a90f4bc7d404848c3e876 (patch) | |
tree | 10f55a79eab0d202f5ab36c6c615f557b9d7b830 /coverage/jsonreport.py | |
parent | aabc54031a673e2f789620a993a90197a36f0e95 (diff) | |
download | python-coveragepy-git-789f1755333cad44115a90f4bc7d404848c3e876.tar.gz |
fix: keep negative arc values
Diffstat (limited to 'coverage/jsonreport.py')
-rw-r--r-- | coverage/jsonreport.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/jsonreport.py b/coverage/jsonreport.py index 7ca468e3..3afae2cc 100644 --- a/coverage/jsonreport.py +++ b/coverage/jsonreport.py @@ -115,4 +115,4 @@ def _convert_branch_arcs(branch_arcs): """Convert branch arcs to a list of two-element tuples.""" for source, targets in branch_arcs.items(): for target in targets: - yield source, target if target != -1 else 0 + yield source, target |