diff options
| author | J08nY | 2024-04-16 15:38:09 +0200 |
|---|---|---|
| committer | J08nY | 2024-04-16 15:38:09 +0200 |
| commit | 483eebd0dd4aefb60552e701dfa13d747881dd63 (patch) | |
| tree | fbd62a1678975e6dd7d3595e2ae9a39dc775f363 /test/ec | |
| parent | f57762f291bbd0de46c7a7f98135fd3e15827db2 (diff) | |
| download | pyecsca-483eebd0dd4aefb60552e701dfa13d747881dd63.tar.gz pyecsca-483eebd0dd4aefb60552e701dfa13d747881dd63.tar.zst pyecsca-483eebd0dd4aefb60552e701dfa13d747881dd63.zip | |
Fix DeepSourcce issues.
Diffstat (limited to 'test/ec')
| -rw-r--r-- | test/ec/test_divpoly.py | 8 | ||||
| -rw-r--r-- | test/ec/test_formula.py | 2 | ||||
| -rw-r--r-- | test/ec/test_params.py | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/test/ec/test_divpoly.py b/test/ec/test_divpoly.py index 84c780c..c3c4c1f 100644 --- a/test/ec/test_divpoly.py +++ b/test/ec/test_divpoly.py @@ -175,16 +175,16 @@ def test_mult_by_n_large(secp128r1): with files(test.data.divpoly).joinpath("mult_21.json").open("r") as f: sage_data = json.load(f) sage_data["mx"][0] = { - eval(key): K(val) for key, val in sage_data["mx"][0].items() + eval(key): K(val) for key, val in sage_data["mx"][0].items() # eval is OK here, skipcq: PYL-W0123 } sage_data["mx"][1] = { - eval(key): K(val) for key, val in sage_data["mx"][1].items() + eval(key): K(val) for key, val in sage_data["mx"][1].items() # eval is OK here, skipcq: PYL-W0123 } sage_data["my"][0] = { - eval(key): K(val) for key, val in sage_data["my"][0].items() + eval(key): K(val) for key, val in sage_data["my"][0].items() # eval is OK here, skipcq: PYL-W0123 } sage_data["my"][1] = { - eval(key): K(val) for key, val in sage_data["my"][1].items() + eval(key): K(val) for key, val in sage_data["my"][1].items() # eval is OK here, skipcq: PYL-W0123 } assert mx[0].as_dict() == sage_data["mx"][0] diff --git a/test/ec/test_formula.py b/test/ec/test_formula.py index 42835a9..24cdc7c 100644 --- a/test/ec/test_formula.py +++ b/test/ec/test_formula.py @@ -77,7 +77,7 @@ def test_inputs_outputs(add): def test_eq(add, dbl): - assert add == add + assert add.__eq__(add) assert add != dbl diff --git a/test/ec/test_params.py b/test/ec/test_params.py index 2163684..8ca7252 100644 --- a/test/ec/test_params.py +++ b/test/ec/test_params.py @@ -17,7 +17,7 @@ from pyecsca.ec.curve import EllipticCurve def test_eq(secp128r1, curve25519): - assert secp128r1 == secp128r1 + assert secp128r1.__eq__(secp128r1) assert secp128r1 != curve25519 assert secp128r1 is not None |
