From: Christopher Allan Webber Date: Tue, 16 Sep 2014 20:35:23 +0000 (-0500) Subject: Annnnd another json decode fix for py3! On a roll with these! X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1db2bd3fe745d0914264406a0090efc6d81244f4;p=mediagoblin.git Annnnd another json decode fix for py3! On a roll with these! This commit sponsored by Ramana Kumar. Thanks! --- diff --git a/mediagoblin/tests/test_api.py b/mediagoblin/tests/test_api.py index 3ac21366..e3a06cf8 100644 --- a/mediagoblin/tests/test_api.py +++ b/mediagoblin/tests/test_api.py @@ -284,7 +284,7 @@ class TestAPI(object): with self.mock_oauth(): request = test_app.get(object_uri) - image = json.loads(request.body) + image = json.loads(request.body.decode()) entry = MediaEntry.query.filter_by(id=image["id"]).first() assert request.status_code == 200