From d602199727419b98b31b69999433574064886447 Mon Sep 17 00:00:00 2001 From: Steve Pulec Date: Fri, 5 Jun 2015 20:09:15 -0400 Subject: [PATCH] More python 3 fixes. --- tests/test_glacier/test_glacier_jobs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_glacier/test_glacier_jobs.py b/tests/test_glacier/test_glacier_jobs.py index 81bad597d..7eff3566e 100644 --- a/tests/test_glacier/test_glacier_jobs.py +++ b/tests/test_glacier/test_glacier_jobs.py @@ -36,7 +36,7 @@ def test_describe_job(): job_id = job_response['JobId'] job = conn.describe_job(vault_name, job_id) - json.loads(job.read()).should.equal({ + json.loads(job.read().decode("utf-8")).should.equal({ 'CompletionDate': '2013-03-20T17:03:43.221Z', 'VaultARN': None, 'RetrievalByteRange': None, @@ -91,4 +91,4 @@ def test_get_job_output(): job_id = job_response['JobId'] output = conn.get_job_output(vault_name, job_id) - output.read().should.equal("some stuff") + output.read().decode("utf-8").should.equal("some stuff")