Skip to content

Commit d0b037d

Browse files
fix test
1 parent e77f275 commit d0b037d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/adapters/test_chat_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def test_chat_adapter_exception_raised_on_failure():
194194
signature = dspy.make_signature("question->answer")
195195
adapter = dspy.ChatAdapter()
196196
invalid_completion = "{'output':'mismatched value'}"
197-
with pytest.raises(ValueError) as error:
197+
with pytest.raises(dspy.utils.exceptions.AdapterParseError, match="Adapter ChatAdapter failed to parse*"):
198198
adapter.parse(signature, invalid_completion)
199199

200200

0 commit comments

Comments
 (0)