Skip to content

Commit dd95129

Browse files
authored
Merge branch 'master' into master
2 parents c65612c + ae7c300 commit dd95129

File tree

2 files changed

+5
-2
lines changed
  • src/aws_encryption_sdk/internal
  • test_vector_handlers/src/awses_test_vectors/manifests/full_message

2 files changed

+5
-2
lines changed

src/aws_encryption_sdk/internal/validators.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
pass
1212

1313

14-
def value_is_not_a_string(instance, attribute, value):
14+
# The unused-argument check is disabled because
15+
# this function MUST match the function signature
16+
# for attrs validators.
17+
def value_is_not_a_string(instance, attribute, value): # pylint: disable=unused-argument
1518
# type: (Any, attr.Attribute, Any) -> None
1619
"""Technically a string is an iterable containing strings.
1720

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def run(self, name):
157157
"""
158158
plaintext, _header = aws_encryption_sdk.decrypt(source=self.ciphertext, key_provider=self.master_key_provider)
159159
if plaintext != self.plaintext:
160-
raise ValueError("Decrypted plaintext does not match expected value.")
160+
raise ValueError("Decrypted plaintext does not match expected value for scenario '{}'".format(name))
161161

162162

163163
@attr.s(init=False)

0 commit comments

Comments
 (0)