From 9cc68deb519afaee7d34740642df666255f7b241 Mon Sep 17 00:00:00 2001 From: danielsf Date: Fri, 8 Apr 2022 07:17:41 -0700 Subject: [PATCH] just wrap clean up in try/except the windows CI processes are still getting PermissionErrors cleaning up temporary files. That should not block building/deploying --- allensdk/test/brain_observatory/sync_utilities/conftest.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/allensdk/test/brain_observatory/sync_utilities/conftest.py b/allensdk/test/brain_observatory/sync_utilities/conftest.py index 2e876f8abd..f3ba995b56 100644 --- a/allensdk/test/brain_observatory/sync_utilities/conftest.py +++ b/allensdk/test/brain_observatory/sync_utilities/conftest.py @@ -137,5 +137,8 @@ def sync_file_fixture( yield sync_path - if sync_path.exists(): - sync_path.unlink() + try: + if sync_path.exists(): + sync_path.unlink() + except PermissionError: + pass