From 0d66f803b4fa96da36da0482bae99a8a9645e25a Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 18 Jun 2024 17:17:05 -0700 Subject: [PATCH] cleanup test --- aider/tests/test_repo.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/aider/tests/test_repo.py b/aider/tests/test_repo.py index b8cc3b06a..087827c31 100644 --- a/aider/tests/test_repo.py +++ b/aider/tests/test_repo.py @@ -152,7 +152,8 @@ class TestRepo(unittest.TestCase): raw_repo.git.add(str(fname)) raw_repo.git.commit("-m", "initial commit") - git_repo = GitRepo(InputOutput(), None, None) + io = InputOutput() + git_repo = GitRepo(io, None, None) # commit a change fname.write_text("new content") @@ -178,8 +179,10 @@ class TestRepo(unittest.TestCase): original_author_name = os.environ.get("GIT_AUTHOR_NAME") self.assertIsNone(original_author_name) - del raw_repo + del fname del git_repo + del raw_repo + del io def test_get_tracked_files(self): # Create a temporary directory