Skip to content

Commit ecbc0c8

Browse files
committed
Skip guardrail tests on python 3.8
1 parent 8cec512 commit ecbc0c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/unitary/with_extras/langchain/test_guardrails.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
from unittest import TestCase
1313
import pytest
1414

15-
pytestmark = pytest.mark.skipif(
16-
sys.version_info < (3, 9), reason="Requires Python 3.9 or higher"
17-
)
15+
if sys.version_info < (3, 9):
16+
pytest.skip("Requires Python 3.9 or higher", allow_module_level=True)
1817

1918
from langchain.callbacks.manager import CallbackManagerForLLMRun
2019
from langchain.llms.base import LLM

0 commit comments

Comments
 (0)