From de6f3fc81f8c33a9d2335320742dc5a47f566cda Mon Sep 17 00:00:00 2001 From: Godopu Date: Sat, 17 Oct 2026 23:54:30 +0900 Subject: [PATCH] test(issue31): the spelling test's holder keeps the uuid in its argv (Issue #31, Mac R2) macOS /bin/sh (bash 3.2) execs the lone `sleep 120` of `sh -c "sleep 120" `, so the uuid left the process list and both [upper] and [mixed] failed on the Mac. A Python holder keeps the uuid in argv, like _holder() in test_issue10_13_purge.py. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VCgu9Fa9iT7TbJUSzdq4Ff --- tests/test_issue31_purge_residual.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_issue31_purge_residual.py b/tests/test_issue31_purge_residual.py index bb21e4d..898d1c1 100644 --- a/tests/test_issue31_purge_residual.py +++ b/tests/test_issue31_purge_residual.py @@ -312,7 +312,9 @@ def test_any_spelling_of_the_uuid_is_the_lowercase_session(home, tmp_path, conv, live.kill() live.wait() - named = subprocess.Popen(["sh", "-c", "sleep 120", conv]) + # Not `sh -c "sleep 120" `: a shell execs its last simple command + # and the uuid would vanish from the process list (macOS /bin/sh). + named = subprocess.Popen([sys.executable, "-c", "import time; time.sleep(120)", conv]) try: time.sleep(0.05) assert adapter.conversation_in_use(other, ctx) is True, "a command line naming the lowercase id"