From 469019550601fe32fc63f3ac8eea23b74ae462fd Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Fri, 18 Sep 2026 22:14:25 -0700 Subject: [PATCH] chore(tests): explicit encoding on the remaining write_text in test_find_shell --- tests/tools/test_find_shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tools/test_find_shell.py b/tests/tools/test_find_shell.py index 4b4ec5071b..b223d54d64 100644 --- a/tests/tools/test_find_shell.py +++ b/tests/tools/test_find_shell.py @@ -271,7 +271,7 @@ class TestMacosLoginShellSwallowRegression: # A .bash_profile that exec's zsh — the reported macOS shape. home = tmp_path / "home" home.mkdir() - (home / ".bash_profile").write_text("exec /bin/zsh -l\n") + (home / ".bash_profile").write_text("exec /bin/zsh -l\n", encoding="utf-8") # Use /bin/zsh explicitly rather than $SHELL. The reported bug is # specifically "system bash 3.2 swallows, zsh does not", and $SHELL is