From 651661ace0d38f7cf8dc6eec0450673aea946851 Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Fri, 24 Feb 2023 15:10:26 +0100 Subject: [PATCH] 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 --- src/ecdsa/test_jacobi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ecdsa/test_jacobi.py b/src/ecdsa/test_jacobi.py index b3e69c00..322b568c 100644 --- a/src/ecdsa/test_jacobi.py +++ b/src/ecdsa/test_jacobi.py @@ -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):