From 5a5195c5003dbf98363e407bf241c32cff981f17 Mon Sep 17 00:00:00 2001 From: James Williams Date: Thu, 29 Dec 2022 16:03:24 -0600 Subject: [PATCH] Update encoding in pytest.py. --- src/tox/pytest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tox/pytest.py b/src/tox/pytest.py index 21cd816ad..ae2112525 100644 --- a/src/tox/pytest.py +++ b/src/tox/pytest.py @@ -161,7 +161,7 @@ def _setup_files(dest: Path, base: Path | None, content: dict[str, Any]) -> None at_path.mkdir(exist_ok=True) ToxProject._setup_files(at_path, None, value) elif isinstance(value, str): - at_path.write_text(textwrap.dedent(value)) + at_path.write_text(textwrap.dedent(value), encoding="utf-8") elif value is None: at_path.mkdir() else: