Skip to content

fix AWS KMS integ test to correctly use Binary value rather than bytes for Python 2.7 compatibility #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/integration/material_providers/test_aws_kms.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import logging
import itertools

from boto3.dynamodb.types import Binary
import hypothesis
import pytest

Expand Down Expand Up @@ -43,7 +44,7 @@ def test_verify_user_agent(aws_kms_cmp, caplog):


def _many_items():
values = ('a string', 1234, b'binary \x00\x88 value')
values = ('a string', 1234, Binary(b'binary \x00\x88 value'))
partition_keys = (('partition_key', value) for value in values)
sort_keys = (('sort_key', value) for value in values)
for pairs in itertools.product(partition_keys, sort_keys):
Expand Down