From 31335a5ba20d52346c46f1df1650b86e370399fe Mon Sep 17 00:00:00 2001 From: unknown <1463567152@qq.com> Date: Sun, 7 Dec 2025 10:24:01 +0800 Subject: [PATCH] use UTF-8 encoding in test_output_to_file --- packages/markitdown/tests/test_cli_vectors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/markitdown/tests/test_cli_vectors.py b/packages/markitdown/tests/test_cli_vectors.py index 5add530b1..e1f9af0f1 100644 --- a/packages/markitdown/tests/test_cli_vectors.py +++ b/packages/markitdown/tests/test_cli_vectors.py @@ -83,7 +83,7 @@ def test_output_to_file(shared_tmp_dir, test_vector) -> None: assert result.returncode == 0, f"CLI exited with error: {result.stderr}" assert os.path.exists(output_file), f"Output file not created: {output_file}" - with open(output_file, "r") as f: + with open(output_file, "r", encoding="utf8") as f: output_data = f.read() for test_string in test_vector.must_include: assert test_string in output_data