diff --git a/tests/test_round21_part2.py b/tests/test_round21_part2.py index 8f69caf..5c14614 100644 --- a/tests/test_round21_part2.py +++ b/tests/test_round21_part2.py @@ -285,7 +285,7 @@ def test_usaleep_education_term(self): class TestWonder(Tmp): def _file(self, text=WONDER): p = os.path.join(self.dir, "export.txt") - with open(p, "w", encoding="utf-8") as f: + with open(p, "w", encoding="utf-8", newline="") as f: # hash the exact bytes on Windows too f.write(text) return p, hashlib.sha256(text.encode()).hexdigest()