Skip to content

Commit f12f1e0

Browse files
committed
fix tests 2
1 parent ea7456f commit f12f1e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/synthesizer/test__utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import platform
12
import re
2-
import sys
33
from unittest.mock import patch
44

55
import pytest
@@ -45,7 +45,7 @@ def test__set_device():
4545

4646
# Assert
4747
if (
48-
sys.platform == 'darwin'
48+
platform.machine() == 'arm64'
4949
and getattr(torch.backends, 'mps', None)
5050
and torch.backends.mps.is_available()
5151
):

0 commit comments

Comments
 (0)