Skip to content

Commit 43db590

Browse files
committed
Update for latest beautifulsoup.
1 parent 0e0fa24 commit 43db590

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_output.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# stdlib
22
import shutil
3-
from typing import cast
3+
from typing import Dict, List, cast
44

55
# 3rd party
66
import pytest
7-
from bs4 import BeautifulSoup # type: ignore[import]
7+
from bs4 import BeautifulSoup
88
from domdf_python_tools.paths import PathPlus
99
from domdf_python_tools.stringlist import StringList
1010
from sphinx.application import Sphinx
@@ -42,7 +42,7 @@ def test_html_output(app: Sphinx, html_regression: HTMLRegressionFixture):
4242
output_file = PathPlus(app.outdir) / "index.html"
4343
page = BeautifulSoup(output_file.read_text(), "html5lib")
4444

45-
for div in page.findAll("script"):
45+
for div in cast(List[Dict], page.find_all("script")):
4646
if div.get("src"):
4747
div["src"] = div["src"].split("?v=")[0]
4848
print(div["src"])

0 commit comments

Comments
 (0)