diff --git a/aider/tests/test_repo.py b/aider/tests/test_repo.py index b1f20f838..92d074b9a 100644 --- a/aider/tests/test_repo.py +++ b/aider/tests/test_repo.py @@ -1,4 +1,5 @@ import os +import platform import tempfile import unittest from pathlib import Path @@ -138,9 +139,13 @@ class TestRepo(unittest.TestCase): self.assertEqual(result, 'a good "commit message"') @patch("aider.repo.GitRepo.get_commit_message") - def notest_commit_with_custom_committer_name(self, mock_send): + def test_commit_with_custom_committer_name(self, mock_send): mock_send.return_value = '"a good commit message"' + # Cleanup of the git temp dir explodes on windows + if platform.system() == "Windows": + return + with GitTemporaryDirectory(): # new repo raw_repo = git.Repo() @@ -179,11 +184,6 @@ class TestRepo(unittest.TestCase): original_author_name = os.environ.get("GIT_AUTHOR_NAME") self.assertIsNone(original_author_name) - del fname - del git_repo - del raw_repo - del io - def test_get_tracked_files(self): # Create a temporary directory tempdir = Path(tempfile.mkdtemp())