Skip to content

Commit ebb7c2c

Browse files
committed
remove print statements
1 parent fe6af09 commit ebb7c2c

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

examples/test/multithreaded/test_i_raw_aes_keyring_multithreaded_example.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33
"""Test suite for the Raw AES keyring example with multi-threading."""
44
from concurrent.futures import ThreadPoolExecutor, as_completed
5+
56
import pytest
67

78
from ...src.raw_aes_keyring_example import encrypt_and_decrypt_with_keyring
@@ -15,9 +16,4 @@ def test_encrypt_and_decrypt_with_keyring(n_threads=10):
1516
thread_futures = {executor.submit(encrypt_and_decrypt_with_keyring): i for i in range(n_threads)}
1617

1718
for future in as_completed(thread_futures):
18-
thread_id = thread_futures[future]
19-
try:
20-
result = future.result()
21-
print(f"Thread {thread_id} passed with result: {result}")
22-
except Exception as e:
23-
raise e
19+
future.result()

examples/test/multithreaded/test_i_raw_rsa_keyring_multithreaded_example.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33
"""Test suite for the Raw RSA keyring example with multi-threading."""
44
from concurrent.futures import ThreadPoolExecutor, as_completed
5+
56
import pytest
67

78
from ...src.raw_rsa_keyring_example import encrypt_and_decrypt_with_keyring
@@ -15,9 +16,4 @@ def test_encrypt_and_decrypt_with_keyring(n_threads=10):
1516
thread_futures = {executor.submit(encrypt_and_decrypt_with_keyring): i for i in range(n_threads)}
1617

1718
for future in as_completed(thread_futures):
18-
thread_id = thread_futures[future]
19-
try:
20-
result = future.result()
21-
print(f"Thread {thread_id} passed with result: {result}")
22-
except Exception as e:
23-
raise e
19+
future.result()

0 commit comments

Comments
 (0)