diff --git a/libs/langchain/tests/unit_tests/chat_models/test_base.py b/libs/langchain/tests/unit_tests/chat_models/test_base.py index 8b7f64456977e..10df05301f417 100644 --- a/libs/langchain/tests/unit_tests/chat_models/test_base.py +++ b/libs/langchain/tests/unit_tests/chat_models/test_base.py @@ -180,9 +180,6 @@ def test_configurable_with_default() -> None: ) assert model_with_config.model == "claude-3-sonnet-20240229" # type: ignore[attr-defined] - # Anthropic defaults to using `transformers` for token counting. - with pytest.raises(ImportError): - model_with_config.get_num_tokens_from_messages([(HumanMessage("foo"))]) # type: ignore[attr-defined] assert model_with_config.model_dump() == { # type: ignore[attr-defined] "name": None,