Skip to content

Commit 5a5195c

Browse files
committed
Update encoding in pytest.py.
1 parent bb50a96 commit 5a5195c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tox/pytest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def _setup_files(dest: Path, base: Path | None, content: dict[str, Any]) -> None
161161
at_path.mkdir(exist_ok=True)
162162
ToxProject._setup_files(at_path, None, value)
163163
elif isinstance(value, str):
164-
at_path.write_text(textwrap.dedent(value))
164+
at_path.write_text(textwrap.dedent(value), encoding="utf-8")
165165
elif value is None:
166166
at_path.mkdir()
167167
else:

0 commit comments

Comments
 (0)