refactor: replace try-except blocks with contextlib.suppress for cleaner exception handling (#24284)
This commit is contained in:
parent
ad8e82ee1d
commit
1abf1240b2
16 changed files with 52 additions and 88 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import contextlib
|
||||
import os
|
||||
|
||||
import pytest
|
||||
|
|
@ -44,10 +45,8 @@ class TestClickzettaVector(AbstractVectorTest):
|
|||
yield vector
|
||||
|
||||
# Cleanup: delete the test collection
|
||||
try:
|
||||
with contextlib.suppress(Exception):
|
||||
vector.delete()
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
def test_clickzetta_vector_basic_operations(self, vector_store):
|
||||
"""Test basic CRUD operations on Clickzetta vector store."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue