File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def test_code_embedder(
43
43
) -> None :
44
44
# Create a temporary copy of the original file
45
45
temp_readme_path = tmp_path / "readme.md"
46
- with open (before_code_embedding_path ) as readme_file :
46
+ with open (before_code_embedding_path , encoding = "utf-8" ) as readme_file :
47
47
temp_readme_path .write_text (readme_file .read ())
48
48
49
49
code_embedder = CodeEmbedder (
@@ -55,10 +55,10 @@ def test_code_embedder(
55
55
56
56
code_embedder ()
57
57
58
- with open (after_code_embedding_path ) as expected_file :
58
+ with open (after_code_embedding_path , encoding = "utf-8" ) as expected_file :
59
59
expected_readme_content = expected_file .readlines ()
60
60
61
- with open (temp_readme_path ) as updated_file :
61
+ with open (temp_readme_path , encoding = "utf-8" ) as updated_file :
62
62
updated_readme_content = updated_file .readlines ()
63
63
64
64
assert updated_readme_content == expected_readme_content
You can’t perform that action at this time.
0 commit comments