From 6e488b013ca1eaf2eefeb125cd9d84bce93bcb28 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Wed, 4 Jan 2023 14:13:30 +0000 Subject: [PATCH] pass encoding kwarg in test_prometheus_api_doc --- distributed/http/tests/test_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distributed/http/tests/test_core.py b/distributed/http/tests/test_core.py index 584b4a081cb..7994741d796 100644 --- a/distributed/http/tests/test_core.py +++ b/distributed/http/tests/test_core.py @@ -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_"):