mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-03 03:59:42 +00:00
black formatting
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import ctypes
|
||||
|
||||
|
||||
def is_libcublas_available() -> bool:
|
||||
try:
|
||||
ctypes.CDLL("libcublas.so")
|
||||
return True
|
||||
except OSError:
|
||||
return False
|
||||
return False
|
||||
|
@@ -12,6 +12,7 @@ def check_spacy_model() -> Iterator[None]:
|
||||
pytest.skip(reason="Spacy model 'en_core_web_lg' not installed")
|
||||
yield
|
||||
|
||||
|
||||
@pytest.fixture(scope="module", autouse=True)
|
||||
def check_libcublas() -> Iterator[None]:
|
||||
if not is_libcublas_available():
|
||||
@@ -19,7 +20,6 @@ def check_libcublas() -> Iterator[None]:
|
||||
yield
|
||||
|
||||
|
||||
|
||||
@pytest.mark.requires("presidio_analyzer", "presidio_anonymizer", "faker")
|
||||
@pytest.mark.parametrize(
|
||||
"analyzed_fields,should_contain",
|
||||
|
@@ -13,6 +13,7 @@ def check_spacy_model() -> Iterator[None]:
|
||||
pytest.skip(reason="Spacy model 'en_core_web_lg' not installed")
|
||||
yield
|
||||
|
||||
|
||||
@pytest.fixture(scope="module", autouse=True)
|
||||
def check_libcublas() -> Iterator[None]:
|
||||
if not is_libcublas_available():
|
||||
|
Reference in New Issue
Block a user