From 533613d92b2b8ddbab08d66f98f9fd8cc27414d9 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 13 Nov 2024 13:22:57 -0800 Subject: [PATCH] fix: Remove unused `repo` variable in test_cmd_add_gitignored_file --- tests/basic/test_commands.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/basic/test_commands.py b/tests/basic/test_commands.py index 3c94112db..be92049db 100644 --- a/tests/basic/test_commands.py +++ b/tests/basic/test_commands.py @@ -1212,9 +1212,7 @@ class TestCommands(TestCase): def test_cmd_add_gitignored_file(self): with GitTemporaryDirectory(): - repo = git.Repo() - - # Create and commit a .gitignore file + # Create a .gitignore file gitignore = Path(".gitignore") gitignore.write_text("*.ignored\n")