summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2022-04-11 10:29:44 +0200
committerFlorian Bruhin <me@the-compiler.org>2022-04-11 10:29:44 +0200
commit3e9203b82902310e1f1f144291af61d93838dcee (patch)
treeae6a09e6a2c42a28bf9e749c7ded935c67921b8a
parentec49047f121d2c011b536c938af72175682a151f (diff)
downloadqutebrowser-3e9203b82902310e1f1f144291af61d93838dcee.tar.gz
qutebrowser-3e9203b82902310e1f1f144291af61d93838dcee.zip
tests: Update bs4 argument name
-rw-r--r--tests/end2end/test_hints_html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/end2end/test_hints_html.py b/tests/end2end/test_hints_html.py
index f1cda97fe..5af09649f 100644
--- a/tests/end2end/test_hints_html.py
+++ b/tests/end2end/test_hints_html.py
@@ -59,7 +59,7 @@ def _parse_file(test_name):
with file_path.open('r', encoding='utf-8') as html:
soup = bs4.BeautifulSoup(html, 'html.parser')
- comment = str(soup.find(text=lambda text: isinstance(text, bs4.Comment)))
+ comment = str(soup.find(string=lambda text: isinstance(text, bs4.Comment)))
if comment is None:
raise InvalidFile(test_name, "no comment found")