Skip to content

Commit

Permalink
testing mlock
Browse files Browse the repository at this point in the history
  • Loading branch information
radu committed Jun 23, 2024
1 parent 996b022 commit 8beec9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_zeroize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 8beec9a

Please sign in to comment.