mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-12 21:32:59 +00:00
Fix some tests caused by unicode rendering.
This commit is contained in:
parent
c5b403bd2f
commit
f736dc6f7b
@ -746,7 +746,10 @@ class MultiFormatResourceTests(TrialTestCase):
|
||||
"<title>400 - Bad Format</title>", response_body,
|
||||
)
|
||||
self.assertIn(
|
||||
"Unknown t value: 'foo'", response_body,
|
||||
"Unknown t value:", response_body,
|
||||
)
|
||||
self.assertIn(
|
||||
"'foo'", response_body,
|
||||
)
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
from past.builtins import unicode
|
||||
from six import ensure_text
|
||||
from six import ensure_text, ensure_str
|
||||
|
||||
import time
|
||||
import json
|
||||
@ -112,7 +112,7 @@ def parse_replace_arg(replace):
|
||||
try:
|
||||
return boolean_of_arg(replace)
|
||||
except WebError:
|
||||
raise WebError("invalid replace= argument: %r" % (replace,), http.BAD_REQUEST)
|
||||
raise WebError("invalid replace= argument: %r" % (ensure_str(replace),), http.BAD_REQUEST)
|
||||
|
||||
|
||||
def get_format(req, default="CHK"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user