Skip to content

Commit b4f8fde

Browse files
committed
test: skip if insufficient resources on macOS
1 parent 563661f commit b4f8fde

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/test_llama_chat_format.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
import os
3+
import platform
34
from collections.abc import Iterator
45
from typing import cast
56

@@ -155,6 +156,10 @@ def is_accelerator_available() -> bool:
155156
),
156157
],
157158
)
159+
@pytest.mark.skipif(
160+
platform.system() == "Darwin" and (os.cpu_count() or 1) < 8,
161+
reason="Insufficient resources on macOS",
162+
)
158163
def test_llama_cpp_python_tool_use(
159164
llm_repo_id: str,
160165
user_prompt_expected_tool_calls: tuple[str, int],

vendor/llama.cpp

0 commit comments

Comments
 (0)