From 76d1b218bf33d5194b7f33244bcae48ced9b89b5 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 25 Sep 2026 08:44:37 +0200 Subject: [PATCH] Compare the checkout root to the resolved temp dir --- bin/test_loop_claude.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/test_loop_claude.py b/bin/test_loop_claude.py index 09501fc1..582ba86c 100644 --- a/bin/test_loop_claude.py +++ b/bin/test_loop_claude.py @@ -87,8 +87,9 @@ class HumanTurns(unittest.TestCase): class CheckoutRoot(unittest.TestCase): def test_is_the_checkout_from_any_directory_inside_it_and_the_directory_itself_outside_one(self): - with tempfile.TemporaryDirectory() as root, contextlib.chdir(root): - self.assertEqual(loop.checkout_root(), os.getcwd()) + with tempfile.TemporaryDirectory() as tmp, contextlib.chdir(tmp): + root = os.getcwd() + self.assertEqual(loop.checkout_root(), root) subprocess.run(["git", "init", "-q"], check=True) os.makedirs("a/b") with contextlib.chdir("a/b"):