From 1db2bd3fe745d0914264406a0090efc6d81244f4 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Tue, 16 Sep 2014 15:35:23 -0500 Subject: [PATCH] Annnnd another json decode fix for py3! On a roll with these! This commit sponsored by Ramana Kumar. Thanks! --- mediagoblin/tests/test_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1