Skip to content

Commit bf13284

Browse files
[BUG FIX] Mark shared queue tests as needs_torch for CI phasing
CI runs non-torch tests first (without PyTorch installed), then installs torch and runs needs_torch tests. Without the marker, these tests ran in Phase 1 and failed on import. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 3b66970 commit bf13284

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/python/test_metal_shared_queue.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
from tests import test_utils
99

10+
pytestmark = pytest.mark.needs_torch
11+
1012

1113
def _get_mps_command_queue() -> int:
1214
"""Extract PyTorch MPS's MTLCommandQueue* as a Python int.

0 commit comments

Comments
 (0)