Skip to content

Commit 9f179d4

Browse files
committed
Specify encoding when reading test files.
1 parent 8e7a9d8 commit 9f179d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def content(the_app: Sphinx) -> Iterator[Sphinx]:
106106
@pytest.fixture()
107107
def page(content: Any, request: Any) -> BeautifulSoup:
108108
pagename = request.param
109-
c = (content.outdir / pagename).read_text()
109+
c = (content.outdir / pagename).read_text(encoding="UTF-8")
110110

111111
soup = BeautifulSoup(c, "html5lib")
112112

0 commit comments

Comments
 (0)