From 942a2c09137556fe9d06dca20fc9be7d7c86e996 Mon Sep 17 00:00:00 2001 From: Paul O'Leary McCann Date: Tue, 24 Jan 2023 18:39:29 +0900 Subject: [PATCH] Specify encoding when loading readme This is only required on Windows. --- spacy/tests/test_cli_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/test_cli_app.py b/spacy/tests/test_cli_app.py index 7401ff33b..59dfa3936 100644 --- a/spacy/tests/test_cli_app.py +++ b/spacy/tests/test_cli_app.py @@ -84,7 +84,7 @@ def test_project_document(project_dir): ) assert result.exit_code == 0 assert readme_path.is_file() - text = readme_path.read_text() + text = readme_path.read_text("utf-8") assert SAMPLE_PROJECT["description"] in text