mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-10 12:20:02 +00:00
native strings only
This commit is contained in:
parent
ef5e18b6c7
commit
d533becc07
@ -30,7 +30,7 @@ def assert_soup_has_tag_with_attributes(testcase, soup, tag_name, attrs):
|
||||
return # we found every attr in this tag; done
|
||||
# seems like exceptions can't support unicode text in python2??
|
||||
testcase.fail(
|
||||
u"No <{}> tags contain attributes: {}".format(tag_name, attrs).encode("utf8")
|
||||
"No <{}> tags contain attributes: {}".format(tag_name, attrs)
|
||||
)
|
||||
|
||||
|
||||
@ -74,7 +74,7 @@ def assert_soup_has_tag_with_content(testcase, soup, tag_name, content):
|
||||
return
|
||||
# seems like exceptions can't support unicode text in python2??
|
||||
testcase.fail(
|
||||
u"No <{}> tag contains the text '{}'".format(tag_name, content).encode('utf8')
|
||||
"No <{}> tag contains the text '{}'".format(tag_name, content).encode('utf8')
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user