Skip to content

Commit

Permalink
pass encoding kwarg in test_prometheus_api_doc
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Jan 4, 2023
1 parent d8753d2 commit 6e488b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distributed/http/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async def test_prometheus_api_doc(c, s, a):

documented = set()
root_dir = pathlib.Path(__file__).parent.parent.parent.parent
with open(root_dir / "docs" / "source" / "prometheus.rst") as fh:
with (root_dir / "docs" / "source" / "prometheus.rst").open(encoding="utf8") as fh:
for row in fh:
row = row.strip()
if row.startswith("dask_"):
Expand Down

0 comments on commit 6e488b0

Please sign in to comment.