Ignore PermissionError when testing too

This commit is contained in:
Paul Gauthier 2023-11-02 16:07:08 -07:00
parent d720bfe459
commit 2e232b1d20

View file

@ -16,7 +16,7 @@ class IgnorantTemporaryDirectory:
def __exit__(self, exc_type, exc_val, exc_tb):
try:
self.temp_dir.__exit__(exc_type, exc_val, exc_tb)
except OSError:
except (OSError, PermissionError):
pass # Ignore errors (Windows)