Fix test_initial_state() test failure on apple silicon.

This commit is contained in:
Joseph Cheek 2025-07-26 17:06:37 -06:00
parent 29066f7c9f
commit c16ff335e4

View file

@ -19,7 +19,7 @@ def test_initial_state(kokoro_backend):
assert kokoro_backend._model is None
assert kokoro_backend._pipelines == {} # Now using dict of pipelines
# Device should be set based on settings
assert kokoro_backend.device in ["cuda", "cpu"]
assert kokoro_backend.device in ["cuda", "cpu", "mps"]
@patch("torch.cuda.is_available", return_value=True)