Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9b730c6

Browse files
committedFeb 24, 2023
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 60d0ee0 commit 9b730c6

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)
Please sign in to comment.