diff options
-rw-r--r-- | tests/end2end/test_hints_html.py | 2 |
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") |