Skip to content

Commit c5f7702

Browse files
committed
revert test for CI
1 parent afcfc62 commit c5f7702

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

tests/test_examples.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ def test_docs_examples( # noqa: C901
118118
allow_model_requests: None,
119119
env: TestEnv,
120120
tmp_path_cwd: Path,
121-
benchmark: Any,
122121
):
123122
mocker.patch('pydantic_ai.agent.models.infer_model', side_effect=mock_infer_model)
124123
mocker.patch('pydantic_ai._utils.group_by_temporal', side_effect=mock_group_by_temporal)
@@ -223,19 +222,9 @@ def print(self, *args: Any, **kwargs: Any) -> None:
223222
test_globals: dict[str, str] = {'__name__': dunder_name}
224223

225224
if eval_example.update_examples: # pragma: lax no cover
226-
benchmark(
227-
eval_example.run_print_update,
228-
example,
229-
call=call_name,
230-
module_globals=test_globals,
231-
)
225+
eval_example.run_print_update(example, call=call_name, module_globals=test_globals)
232226
else:
233-
benchmark(
234-
eval_example.run_print_check,
235-
example,
236-
call=call_name,
237-
module_globals=test_globals,
238-
)
227+
eval_example.run_print_check(example, call=call_name, module_globals=test_globals)
239228

240229

241230
def print_callback(s: str) -> str:

0 commit comments

Comments
 (0)