Skip to content

Commit c3aed4b

Browse files
committed
Set encoding in read_text to fix differences in re.search between OS
1 parent 3bc014d commit c3aed4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def validate_build(testproject_path, project_locale: str):
188188
# Make sure with markdown tag has valid
189189
# git revision date tag
190190
page_with_tag = testproject_path / "site/page_with_tag/index.html"
191-
contents = page_with_tag.read_text()
191+
contents = page_with_tag.read_text(encoding="utf8")
192192
assert re.search(r"Markdown tag\:\s[<span>|\w].+", contents)
193193

194194
repo = Util(testproject_path)

0 commit comments

Comments
 (0)