From 8beec9a1989ca0c206bfbd2a5c1190b34d4764b9 Mon Sep 17 00:00:00 2001 From: radu Date: Sun, 23 Jun 2024 03:16:03 +0300 Subject: [PATCH] testing mlock --- tests/test_zeroize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_zeroize.py b/tests/test_zeroize.py index f4e5478..f79d687 100644 --- a/tests/test_zeroize.py +++ b/tests/test_zeroize.py @@ -104,8 +104,8 @@ def test_zeroize1_sizes(self): address = (ctypes.c_char * len(arr)).from_buffer(arr) size = len(arr) - address, length = arr2.buffer_info() - length = length * arr2.itemsize + address2, size2 = arr2.buffer_info() + size2 = length * arr2.itemsize print(f"Pointer to the first element: {address}") print(f"Length of the array: {length}")