From 2d5b48120585599706dfe804025e35b4c0569740 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 23 Aug 2024 11:38:36 -0700 Subject: [PATCH] fix: Read `expected_map_file` with utf8 encoding --- tests/basic/test_repomap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/basic/test_repomap.py b/tests/basic/test_repomap.py index 50e00338a..9ba15ef62 100644 --- a/tests/basic/test_repomap.py +++ b/tests/basic/test_repomap.py @@ -453,8 +453,8 @@ class TestRepoMapAllLanguages(unittest.TestCase): # Generate the repo map generated_map_str = repo_map.get_repo_map([], other_files).strip() - # Read the expected map from the file - with open(expected_map_file, "r") as f: + # Read the expected map from the file using UTF-8 encoding + with open(expected_map_file, "r", encoding="utf-8") as f: expected_map = f.read().strip() # Compare the generated map with the expected map