10000 Update tests/lib/streaming/test_messages.py · anthropics/anthropic-sdk-python@a5a32b8 · GitHub
[go: up one dir, main page]

Skip to content

Commit a5a32b8

Browse files
dtmeadowsRobertCraigie
authored andcommitted
Update tests/lib/streaming/test_messages.py
Co-authored-by: Robert Craigie <robert@craigie.dev>
1 parent 358670d commit a5a32b8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/lib/streaming/test_messages.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,10 +389,8 @@ def test_stream_method_definition_in_sync(sync: bool) -> None:
389389

390390
# go through all the ContentBlock types to make sure the type alias is up to date
391391
# with any type that has an input property of type object
392+
@pytest.mark.skipif(not PYDANTIC_V2, reason='only applicable in pydantic v2')
392393
def test_tracks_tool_input_type_alias_is_up_to_date() -> None:
393-
# only run this on Pydantic v2
394-
if not PYDANTIC_V2:
395-
pytest.skip("This test is only applicable for Pydantic v2")
396394
from typing import get_args
397395

398396
from pydantic import BaseModel

0 commit comments

Comments
 (0)
0