Skip to content

Commit bb50a96

Browse files
committed
Add log_file UTF-8 encoding.
1 parent f4e59e0 commit bb50a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tox/tox_env/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def _log_execute(self, request: ExecuteRequest, status: ExecuteStatus) -> None:
444444

445445
@staticmethod
446446
def _write_execute_log(env_name: str, log_file: Path, request: ExecuteRequest, status: ExecuteStatus) -> None:
447-
with log_file.open("wt") as file:
447+
with log_file.open("wt", encoding="utf-8") as file:
448448
file.write(f"name: {env_name}\n")
449449
file.write(f"run_id: {request.run_id}\n")
450450
for env_key, env_value in request.env.items():

0 commit comments

Comments
 (0)