Tests pass on Python 2 and Python 3.

This commit is contained in:
Itamar Turner-Trauring 2020-12-16 11:13:32 -05:00
parent 54a11dbb6a
commit acc36c34d0
2 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ class RenderExceptionTests(SyncTestCase):
BeautifulSoup(value, 'html5lib'),
"meta",
{"http-equiv": "refresh",
"content": "0;URL={}".format(loc.encode("ascii")),
"content": "0;URL={}".format(loc),
},
)
# The assertion will raise if it has a problem, otherwise

View File

@ -562,7 +562,7 @@ def _finish(result, render, request):
Message.log(
message_type=u"allmydata:web:common-render:DecodedURL",
)
_finish(redirectTo(str(result), request), render, request)
_finish(redirectTo(result.to_text().encode("utf-8"), request), render, request)
elif result is None:
Message.log(
message_type=u"allmydata:web:common-render:None",