Skip to content

Commit

Permalink
Open file explicitly with UTF-8 so it works on Windows, too
Browse files Browse the repository at this point in the history
  • Loading branch information
ambv committed Aug 20, 2020
1 parent 3f3fa8e commit 411d8e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_black.py
Expand Up @@ -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()


Expand Down

0 comments on commit 411d8e9

Please sign in to comment.