Read README as UTF-8 in the floor test
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user