Read README as UTF-8 in the floor test

This commit is contained in:
2026-09-26 15:36:52 +02:00
parent 4474d42d38
commit c106c8e5f9
+1 -1
View File
@@ -9,7 +9,7 @@ FLOOR = re.compile(r"Python (3\.\d+) or newer")
class PythonFloor(unittest.TestCase):
def test_every_bin_file_compiles_on_the_python_the_readme_names_as_floor(self):
named = FLOOR.search((ROOT / "README.md").read_text())
named = FLOOR.search((ROOT / "README.md").read_text(encoding="utf-8"))
self.assertIsNotNone(named, "README.md's Install names `Python 3.N or newer`")
tracked = subprocess.run(["git", "ls-files", "-z", "bin"], capture_output=True, check=True, cwd=ROOT, text=True).stdout.split("\0")
self.assertTrue(tracked[0])