diff --git a/tests/test_barman_cloud_backup_delete.py b/tests/test_barman_cloud_backup_delete.py index 637028bd6..70bd6d867 100644 --- a/tests/test_barman_cloud_backup_delete.py +++ b/tests/test_barman_cloud_backup_delete.py @@ -384,7 +384,7 @@ def test_keep_single_backup_minimum_redundancy( # WHEN barman-cloud-backup-delete runs, specifying either a backup ID or name # and with minimum-redundancy 1 # THEN an OperationErrorExit is raised - with pytest.raises(OperationErrorExit) as _exc: + with pytest.raises(OperationErrorExit): cloud_backup_delete.main( [ "cloud_storage_url",