diff --git a/swh/storage/tests/test_storage.py b/swh/storage/tests/test_storage.py --- a/swh/storage/tests/test_storage.py +++ b/swh/storage/tests/test_storage.py @@ -230,7 +230,8 @@ with pytest.raises(StorageArgumentException, match='status'): swh_storage.content_add([{**cont, 'status': 'absent'}]) - with pytest.raises(StorageArgumentException, match='status'): + with pytest.raises( + (ValueError, StorageArgumentException), match='status'): swh_storage.content_add([{**cont, 'status': 'foobar'}]) with pytest.raises(StorageArgumentException, match="(?i)length"):