Try and use a normalized dirname to avoid windows test issues in CI

This commit is contained in:
Paul Gauthier 2024-08-12 11:18:15 -07:00
parent 5cab55c74b
commit 5bf36002ec

View file

@ -16,6 +16,7 @@ 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__()