diff --git a/tests/scripts/generate_bignum_tests.py b/tests/scripts/generate_bignum_tests.py index 2a8107725..cc4db4c59 100755 --- a/tests/scripts/generate_bignum_tests.py +++ b/tests/scripts/generate_bignum_tests.py @@ -228,7 +228,7 @@ class BignumAdd(BignumOperation): self.symbol = "+" def result(self) -> str: - return quote_str(hex(self.int_l + self.int_r).replace("0x", "", 1)) + return quote_str("{:x}".format(self.int_l + self.int_r)) if __name__ == '__main__':