From 1fade8adb603b0ebf87fbca87dab0eaba42970fa Mon Sep 17 00:00:00 2001 From: Werner Lewis Date: Mon, 12 Sep 2022 17:34:15 +0100 Subject: [PATCH] Move symbol definition out of __init__ Signed-off-by: Werner Lewis --- tests/scripts/generate_bignum_tests.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/scripts/generate_bignum_tests.py b/tests/scripts/generate_bignum_tests.py index cc4db4c59..28d29bfe1 100755 --- a/tests/scripts/generate_bignum_tests.py +++ b/tests/scripts/generate_bignum_tests.py @@ -211,6 +211,7 @@ class BignumCmpAbs(BignumCmp): class BignumAdd(BignumOperation): """Test cases for bignum value addition.""" count = 0 + symbol = "+" test_function = "mbedtls_mpi_add_mpi" test_name = "MPI add" input_cases = cast( @@ -223,10 +224,6 @@ class BignumAdd(BignumOperation): )) ) - def __init__(self, val_l, val_r) -> None: - super().__init__(val_l, val_r) - self.symbol = "+" - def result(self) -> str: return quote_str("{:x}".format(self.int_l + self.int_r))