Skip to content

Commit b7257a2

Browse files
committed
Fix json.loads in Python 3.5
3.5 requires a str, not a bytes https://travis-ci.org/simonw/datasette/jobs/421660555
1 parent 1f54e09 commit b7257a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_plugins.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ def test_plugin_extra_css_urls(app_client, path, expected_decoded_object):
5353
][0]["href"]
5454
# This link has a base64-encoded JSON blob in it
5555
encoded = special_href.split("/")[3]
56-
assert expected_decoded_object == json.loads(base64.b64decode(encoded))
56+
assert expected_decoded_object == json.loads(
57+
base64.b64decode(encoded).decode("utf8")
58+
)
5759

5860

5961
def test_plugin_extra_js_urls(app_client):

0 commit comments

Comments
 (0)