Merge pull request #22785 from BerriAI/fix/azure-batches-test-tenacity-import
Guard tenacity import in e2e Azure batch tests
This commit is contained in:
commit
317c162dfe
@ -12,6 +12,8 @@ import httpx
|
||||
import openai
|
||||
import psycopg2
|
||||
import pytest
|
||||
|
||||
tenacity = pytest.importorskip("tenacity", reason="tenacity required for e2e batch tests")
|
||||
from tenacity import Retrying, stop_after_delay, wait_fixed
|
||||
|
||||
sys.path.insert(0, os.path.abspath("../.."))
|
||||
|
||||
@ -7,6 +7,8 @@ import warnings
|
||||
import httpx
|
||||
import openai
|
||||
import pytest
|
||||
|
||||
tenacity = pytest.importorskip("tenacity", reason="tenacity required for e2e batch tests")
|
||||
from tenacity import RetryError
|
||||
|
||||
sys.path.insert(0, os.path.abspath("../.."))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user