Skip to content

Commit ffba5af

Browse files
clean
1 parent 827f206 commit ffba5af

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/aws_encryption_sdk/streaming_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
from aws_encryption_sdk.materials_managers.mpl.cmm import CryptoMaterialsManagerFromMPL
7878

7979
except ImportError as e:
80-
print("streamingerror " + str(e))
8180
_HAS_MPL = False
8281

8382
_LOGGER = logging.getLogger(__name__)

test_vector_handlers/src/awses_test_vectors/manifests/full_message/decrypt.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,14 @@ def match(self, name, decrypt_fn):
130130
# fails in some way, and hence the overly-broad implicit try/catch here.
131131

132132
with pytest.raises(Exception):
133-
# When the exception is raised,
134-
# it will write stderrs to console.
135-
# However, this branch is expected to raise an exception,
136-
# and will write that exception to console.
137-
# Swallow the exception so CI build logs are cleaner,
133+
# Here, an exception is expected.
134+
# However, when the expected exception is raised,
135+
# the Python environment will write stderrs to console.
136+
# Redirect stderr to null-like sink
137+
# so local and CI build logs are cleaner,
138138
# and any actual issues are easier to see.
139+
# If an exception is not raised as expected,
140+
# `pytest.raises` will fail.
139141
f = io.StringIO()
140142
with contextlib.redirect_stderr(f):
141143
decrypt_fn()

0 commit comments

Comments
 (0)