chore(tests): explicit encoding on the remaining write_text in test_find_shell

This commit is contained in:
teknium1
2026-09-18 22:14:25 -07:00
committed by Teknium
parent b9ba9d503f
commit 4690195506

View File

@@ -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