mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
Fix BeautifulSoup's GuessedAtParserWarning
This commit is contained in:
parent
e59a922b27
commit
b787de0acc
0
newsfragments/3557.minor
Normal file
0
newsfragments/3557.minor
Normal file
@ -144,7 +144,7 @@ class WebResultsRendering(unittest.TestCase):
|
||||
|
||||
@staticmethod
|
||||
def remove_tags(html):
|
||||
return BeautifulSoup(html).get_text(separator=" ")
|
||||
return BeautifulSoup(html, 'html5lib').get_text(separator=" ")
|
||||
|
||||
def create_fake_client(self):
|
||||
sb = StorageFarmBroker(True, None, EMPTY_CLIENT_CONFIG)
|
||||
|
@ -160,7 +160,7 @@ class RenderExceptionTests(SyncTestCase):
|
||||
MatchesPredicate(
|
||||
lambda value: assert_soup_has_tag_with_attributes(
|
||||
self,
|
||||
BeautifulSoup(value),
|
||||
BeautifulSoup(value, 'html5lib'),
|
||||
"meta",
|
||||
{"http-equiv": "refresh",
|
||||
"content": "0;URL={}".format(loc.encode("ascii")),
|
||||
|
Loading…
x
Reference in New Issue
Block a user