diff --git a/test/functional/test_framework/txtools.py b/test/functional/test_framework/txtools.py --- a/test/functional/test_framework/txtools.py +++ b/test/functional/test_framework/txtools.py @@ -13,7 +13,7 @@ def get_random_bytes(size: int) -> bytes: if sys.version_info >= (3, 9, 0): - return random.randbytes(size) + return random.randbytes(size) # type: ignore[attr-defined] # slower workaround if not size: return b''