From 2e232b1d205f6154f73956c5e5e4a0265f7e9923 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 2 Nov 2023 16:07:08 -0700 Subject: [PATCH] Ignore PermissionError when testing too --- tests/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils.py b/tests/utils.py index 32a2deaf5..06a17abfb 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -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)