From 45f6bcc187a8cf2b2a0bbcfd322117f400945124 Mon Sep 17 00:00:00 2001 From: Ben Boonstra Date: Tue, 22 Oct 2024 22:12:34 -0500 Subject: [PATCH] Remove backups by force in [test]s --- tests/test_advanced_usage.py | 2 +- tests/test_configuration.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_advanced_usage.py b/tests/test_advanced_usage.py index febd7fe..c09df6b 100644 --- a/tests/test_advanced_usage.py +++ b/tests/test_advanced_usage.py @@ -216,7 +216,7 @@ def test_backup(self): "Backup file should contain the correct data", ) - shutil.rmtree(backup_dir) + shutil.rmtree(backup_dir, ignore_errors=True) if __name__ == "__main__": diff --git a/tests/test_configuration.py b/tests/test_configuration.py index 8b8bbe5..1235fb8 100644 --- a/tests/test_configuration.py +++ b/tests/test_configuration.py @@ -171,7 +171,7 @@ def test_backup_interval(self): ) # Clean up the backup directory - shutil.rmtree(backup_path) + shutil.rmtree(backup_path, ignore_errors=True) if __name__ == "__main__":