Skip to content

Commit

Permalink
Update encoding in pytest.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamwil committed Dec 29, 2022
1 parent bb50a96 commit 5a5195c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tox/pytest.py
Expand Up @@ -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:
Expand Down

0 comments on commit 5a5195c

Please sign in to comment.