Skip to content

Commit 63d0188

Browse files
committed
Update encoding in pytest.py.
1 parent bb50a96 commit 63d0188

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"python.testing.pytestArgs": ["tests"],
3+
"python.testing.unittestEnabled": false,
4+
"python.testing.pytestEnabled": true
5+
}

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)