diff options
author | Joe Walker <walkerjoseph@google.com> | 2019-03-29 10:21:54 -0700 |
---|---|---|
committer | Joe Walker <walkerjoseph@google.com> | 2019-03-29 10:21:54 -0700 |
commit | 7ef336bf0fda695f34b5574816ab0aef0a32acca (patch) | |
tree | d9c37cf8fe169adf85a56adabb46d75ea3aa28c9 | |
parent | 98f6bcd1cdac5275dc959d128f1ad530c05f19b9 (diff) | |
download | boto-7ef336bf0fda695f34b5574816ab0aef0a32acca.tar.gz |
Ensure correct type for writing mocked data
-rw-r--r-- | tests/integration/s3/mock_storage_service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/s3/mock_storage_service.py b/tests/integration/s3/mock_storage_service.py index aece4902..d4e92650 100644 --- a/tests/integration/s3/mock_storage_service.py +++ b/tests/integration/s3/mock_storage_service.py @@ -88,7 +88,7 @@ class MockKey(object): torrent=NOT_IMPL, version_id=NOT_IMPL, res_download_handler=NOT_IMPL): - fp.write(self.data) + fp.write(six.ensure_binary(self.data)) def get_file(self, fp, headers=NOT_IMPL, cb=NOT_IMPL, num_cb=NOT_IMPL, torrent=NOT_IMPL, version_id=NOT_IMPL, |