From 83763ab6b161307fd4dcadf8fd7f6b1ace207693 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 10 Nov 2022 09:15:21 +0100 Subject: [PATCH] Pacify pylint Signed-off-by: Gilles Peskine --- tests/scripts/generate_bignum_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scripts/generate_bignum_tests.py b/tests/scripts/generate_bignum_tests.py index 2cdd07d7f..c76294ca5 100755 --- a/tests/scripts/generate_bignum_tests.py +++ b/tests/scripts/generate_bignum_tests.py @@ -55,7 +55,6 @@ of BaseTarget in test_data_generation.py. # limitations under the License. import sys -import typing from abc import ABCMeta, abstractmethod from typing import Iterator, List, Tuple, TypeVar @@ -71,7 +70,7 @@ def hex_to_int(val: str) -> int: This is a superset of what is accepted by mbedtls_test_read_mpi_core(). """ - if val == '' or val == '-': + if val in ['', '-']: return 0 return int(val, 16) @@ -121,6 +120,7 @@ class BignumOperation(BignumTarget, metaclass=ABCMeta): return [quote_str(self.arg_a), quote_str(self.arg_b), self.result()] def description_suffix(self) -> str: + #pylint: disable=no-self-use # derived classes need self """Text to add at the end of the test case description.""" return ""