From 41aff3b568d04bdb82a596aa0ea93845c75d0470 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 25 Sep 2026 08:46:40 +0200 Subject: [PATCH] Assert git's reason is passed on, not its wording --- bin/test_loop_claude.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/test_loop_claude.py b/bin/test_loop_claude.py index 39659ed0..94a0c723 100644 --- a/bin/test_loop_claude.py +++ b/bin/test_loop_claude.py @@ -91,7 +91,7 @@ class CheckoutRoot(unittest.TestCase): root = os.getcwd() with self.assertRaises(SystemExit) as stopped: loop.checkout_root() - self.assertIn("not a git repository", stopped.exception.code) + self.assertTrue(stopped.exception.code) subprocess.run(["git", "init", "-q"], check=True) os.makedirs("a/b") with contextlib.chdir("a/b"):