Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3076375

Browse files
committed
chore: Specify encoding when reading file in tests
1 parent 39fbea1 commit 3076375

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_disabling_plugin(tmp_path: Path) -> None:
4141
mkdocs_config["plugins"].run_event("shutdown")
4242

4343
# make sure the instruction was not processed
44-
assert "::: mkdocstrings" in site_dir.joinpath("index.html").read_text()
44+
assert "::: mkdocstrings" in site_dir.joinpath("index.html").read_text(encoding="utf8")
4545

4646

4747
def test_plugin_default_config(tmp_path: Path) -> None:

0 commit comments

Comments
 (0)