Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

Commit 09aabd3

Browse files
committed
Read UTF-8 in tests
1 parent 45dc990 commit 09aabd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_parse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_fixtures__cli(line, title, text, expected, tmp_path):
2525
file_path = tmp_path / "test_markdown.md"
2626
file_path.write_text(text, encoding="utf-8")
2727
assert mdformat._cli.run([str(file_path)]) == 0
28-
md_new = file_path.read_text()
28+
md_new = file_path.read_text(encoding="utf-8")
2929
assert md_new == expected
3030

3131

@@ -51,5 +51,5 @@ def test_fixtures_compact__cli(line, title, text, expected, tmp_path):
5151
file_path = tmp_path / "test_markdown.md"
5252
file_path.write_text(text, encoding="utf-8")
5353
assert mdformat._cli.run([str(file_path), "--compact-tables"]) == 0
54-
md_new = file_path.read_text()
54+
md_new = file_path.read_text(encoding="utf-8")
5555
assert md_new == expected

0 commit comments

Comments
 (0)