mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 05:45:00 +00:00
attempt to fix windows tests in CI
This commit is contained in:
parent
b1e7e80700
commit
cb24f8c6d4
2 changed files with 1 additions and 3 deletions
|
@ -16,7 +16,6 @@ IMAGE_EXTENSIONS = {".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".webp"}
|
||||||
class IgnorantTemporaryDirectory:
|
class IgnorantTemporaryDirectory:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.temp_dir = tempfile.TemporaryDirectory()
|
self.temp_dir = tempfile.TemporaryDirectory()
|
||||||
self.temp_dir = str(Path(self.temp_dir).resolve())
|
|
||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
return self.temp_dir.__enter__()
|
return self.temp_dir.__enter__()
|
||||||
|
@ -45,7 +44,7 @@ class ChdirTemporaryDirectory(IgnorantTemporaryDirectory):
|
||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
res = super().__enter__()
|
res = super().__enter__()
|
||||||
os.chdir(self.temp_dir.name)
|
os.chdir(Path(self.temp_dir.name).resolve())
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def __exit__(self, exc_type, exc_val, exc_tb):
|
def __exit__(self, exc_type, exc_val, exc_tb):
|
||||||
|
|
|
@ -575,7 +575,6 @@ class TestCommands(TestCase):
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
repo = git.Repo()
|
repo = git.Repo()
|
||||||
repo.git.add(str(test_file))
|
repo.git.add(str(test_file))
|
||||||
repo.git.commit("-m", "initial")
|
repo.git.commit("-m", "initial")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue