Skip to content

Commit cebcd80

Browse files
authored
Merge pull request #62 from mattsb42-aws/integ-binary
fix AWS KMS integ test to correctly use Binary value rather than bytes for Python 2.7 compatibility
2 parents a4d2414 + 7ce76d1 commit cebcd80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/integration/material_providers/test_aws_kms.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import logging
1515
import itertools
1616

17+
from boto3.dynamodb.types import Binary
1718
import hypothesis
1819
import pytest
1920

@@ -43,7 +44,7 @@ def test_verify_user_agent(aws_kms_cmp, caplog):
4344

4445

4546
def _many_items():
46-
values = ('a string', 1234, b'binary \x00\x88 value')
47+
values = ('a string', 1234, Binary(b'binary \x00\x88 value'))
4748
partition_keys = (('partition_key', value) for value in values)
4849
sort_keys = (('sort_key', value) for value in values)
4950
for pairs in itertools.product(partition_keys, sort_keys):

0 commit comments

Comments
 (0)