summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Kario <hubert@kario.pl>2023-02-24 15:10:26 +0100
committerHubert Kario <hubert@kario.pl>2023-02-24 15:41:56 +0100
commit62f8e7c2b647eb526bd55e945ca0c01dae09ea96 (patch)
treea7a7b909009465a2ab34586cffa87e79348ae402
parent50c1fa44f35b9d383ffbc3e045a94419f6c347d1 (diff)
downloadecdsa-62f8e7c2b647eb526bd55e945ca0c01dae09ea96.tar.gz
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
-rw-r--r--src/ecdsa/test_jacobi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ecdsa/test_jacobi.py b/src/ecdsa/test_jacobi.py
index b3e69c0..322b568 100644
--- a/src/ecdsa/test_jacobi.py
+++ b/src/ecdsa/test_jacobi.py
@@ -50,7 +50,7 @@ class TestJacobi(unittest.TestCase):
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):