Commit bc71685d authored by Łukasz Langa's avatar Łukasz Langa
Browse files

Open file explicitly with UTF-8 so it works on Windows, too

parent 05cc7ede
Loading
Loading
Loading
Loading
+1 −1
Changes for tests/test_black.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -2062,7 +2062,7 @@ async def test_blackd_response_black_version_header(self) -> None:
        self.assertIsNotNone(response.headers.get(blackd.BLACK_VERSION_HEADER))


with open(black.__file__, "r") as _bf:
with open(black.__file__, "r", encoding="utf-8") as _bf:
    black_source_lines = _bf.readlines()