From 516a15dde2d71147183e0663da887f85deb12a50 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Wed, 12 Apr 2023 13:08:31 +0200 Subject: [PATCH] Update src/towncrier/test/helpers.py Co-authored-by: Thomas Grainger --- src/towncrier/test/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/towncrier/test/helpers.py b/src/towncrier/test/helpers.py index 1d4a3d44..e86a9fcd 100644 --- a/src/towncrier/test/helpers.py +++ b/src/towncrier/test/helpers.py @@ -32,7 +32,7 @@ def read_pkg_resource(path: str) -> str: """ Read *path* from the towncrier package. """ - return (resources.files("towncrier") / path).read_text() + return (resources.files("towncrier") / path).read_text("utf8") def with_isolated_runner(fn: Callable[..., Any]) -> Callable[..., Any]: