From e6974b0e7146f18585426aebf88aabd8f7eab3a9 Mon Sep 17 00:00:00 2001 From: Jack Grahl Date: Thu, 25 May 2017 23:46:00 +0000 Subject: [PATCH] Decode bytes from HTTP into a string. --- tests/test_flask_get.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_flask_get.py b/tests/test_flask_get.py index 8904587..764c561 100644 --- a/tests/test_flask_get.py +++ b/tests/test_flask_get.py @@ -34,7 +34,7 @@ def json_docs(): response = self.client.get('/docs') self.assertEqual(response.status_code, 200) - data = json.loads(response.data) + data = json.loads(response.data.decode('utf-8')) self.assertIn('endpoints', data) self.assertEqual(len(data['endpoints']), 1)