Skip to content

Commit

Permalink
test_jacobi: make coverage realistic
Browse files Browse the repository at this point in the history
Since it's a test case, only one course of action is actually expected
so there is no branch at this point, even if the with: never returns
  • Loading branch information
tomato42 committed Feb 24, 2023
1 parent a60fdf9 commit 651661a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ecdsa/test_jacobi.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_add_with_different_curves(self):
p_a = PointJacobi.from_affine(generator_256)
p_b = PointJacobi.from_affine(generator_224)

with self.assertRaises(ValueError):
with self.assertRaises(ValueError): # pragma: no branch
p_a + p_b

def test_compare_different_curves(self):
Expand Down

0 comments on commit 651661a

Please sign in to comment.