Skip to content

Commit 3981393

Browse files
committed
test: skip if insufficient resources on macOS
1 parent 9b0d8dd commit 3981393

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_llama_chat_format.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ def is_accelerator_available() -> bool:
155155
),
156156
],
157157
)
158+
@pytest.mark.skipif(
159+
os.uname().sysname == "Darwin" and (os.cpu_count() or 1) < 8,
160+
reason="Insufficient resources on macOS",
161+
)
158162
def test_llama_cpp_python_tool_use(
159163
llm_repo_id: str,
160164
user_prompt_expected_tool_calls: tuple[str, int],

0 commit comments

Comments
 (0)