mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 13:33:09 +00:00
Tests pass on Python 2 and Python 3.
This commit is contained in:
parent
54a11dbb6a
commit
acc36c34d0
@ -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
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user