Skip to content

Commit e6974b0

Browse files
committed
Decode bytes from HTTP into a string.
1 parent a162e7d commit e6974b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_flask_get.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def json_docs():
3434
response = self.client.get('/docs')
3535
self.assertEqual(response.status_code, 200)
3636

37-
data = json.loads(response.data)
37+
data = json.loads(response.data.decode('utf-8'))
3838
self.assertIn('endpoints', data)
3939
self.assertEqual(len(data['endpoints']), 1)
4040

0 commit comments

Comments
 (0)