Skip to content

Commit

Permalink
Remove backups by force in [test]s
Browse files Browse the repository at this point in the history
  • Loading branch information
bboonstra committed Oct 23, 2024
1 parent 1e71e1c commit 45f6bcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_advanced_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down
2 changes: 1 addition & 1 deletion tests/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down

0 comments on commit 45f6bcc

Please sign in to comment.