Permalink
Browse files

Fix json.loads in Python 3.5

  • Loading branch information...
simonw committed Aug 28, 2018
1 parent 1f54e09 commit b7257a21bf3dfa7353980f343c83a616da44daa7
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/test_plugins.py
View
@@ -53,7 +53,9 @@ def test_plugin_extra_css_urls(app_client, path, expected_decoded_object):
][0]["href"]
# This link has a base64-encoded JSON blob in it
encoded = special_href.split("/")[3]
assert expected_decoded_object == json.loads(base64.b64decode(encoded))
assert expected_decoded_object == json.loads(
base64.b64decode(encoded).decode("utf8")
)
def test_plugin_extra_js_urls(app_client):

0 comments on commit b7257a2

Please sign in to comment.