Skip to content

Commit

Permalink
testing mlock
Browse files Browse the repository at this point in the history
  • Loading branch information
radu committed Jun 22, 2024
1 parent a9e3d9a commit e2221a7
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 @@ -48,7 +48,7 @@ def test_zeroize1_sizes(self):
arr2 = array.array('B', (random.randint(0, 255) for _ in range(int(size * 1024 * 1024))))
print(f"Testing size: {size} MB")
# print("mlock bytearray")
mlock(arr)
# mlock(arr)
# print("mlock np array")
# mlock(arr_np)
# print("mlock array.array")
Expand All @@ -75,7 +75,7 @@ def test_zeroize1_sizes(self):
self.assertEqual(True, all(byte == 0 for byte in arr2))

finally:
munlock(arr)
# munlock(arr)


if __name__ == "__main__":
Expand Down

0 comments on commit e2221a7

Please sign in to comment.