Преглед изворни кода

Merge pull request #501 from Avaiga/fix/conftest-os-error

fix: ignore errors when cleaning up fs repository files
João André пре 1 година
родитељ
комит
60136ab41a
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      tests/rest/conftest.py

+ 3 - 1
tests/rest/conftest.py

@@ -312,4 +312,6 @@ def create_job_list():
 def cleanup_files():
 def cleanup_files():
     Config.unblock_update()
     Config.unblock_update()
     if os.path.exists(".data"):
     if os.path.exists(".data"):
-        shutil.rmtree(".data")
+        shutil.rmtree(".data", ignore_errors=True)
+    if os.path.exists(".my_data"):
+        shutil.rmtree(".my_data", ignore_errors=True)