attempt to fix windows tests in CI

This commit is contained in:
Paul Gauthier 2024-08-12 14:09:52 -07:00
parent b1e7e80700
commit cb24f8c6d4
2 changed files with 1 additions and 3 deletions

View file

@ -16,7 +16,6 @@ IMAGE_EXTENSIONS = {".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".webp"}
class IgnorantTemporaryDirectory:
def __init__(self):
self.temp_dir = tempfile.TemporaryDirectory()
self.temp_dir = str(Path(self.temp_dir).resolve())
def __enter__(self):
return self.temp_dir.__enter__()
@ -45,7 +44,7 @@ class ChdirTemporaryDirectory(IgnorantTemporaryDirectory):
def __enter__(self):
res = super().__enter__()
os.chdir(self.temp_dir.name)
os.chdir(Path(self.temp_dir.name).resolve())
return res
def __exit__(self, exc_type, exc_val, exc_tb):

View file

@ -575,7 +575,6 @@ class TestCommands(TestCase):
)
)
repo = git.Repo()
repo.git.add(str(test_file))
repo.git.commit("-m", "initial")