Skip to content

Commit 651661a

Browse files
committed
test_jacobi: make coverage realistic
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
1 parent a60fdf9 commit 651661a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ecdsa/test_jacobi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_add_with_different_curves(self):
5050
p_a = PointJacobi.from_affine(generator_256)
5151
p_b = PointJacobi.from_affine(generator_224)
5252

53-
with self.assertRaises(ValueError):
53+
with self.assertRaises(ValueError): # pragma: no branch
5454
p_a + p_b
5555

5656
def test_compare_different_curves(self):

0 commit comments

Comments
 (0)