Skip to content

Commit a5a6a76

Browse files
committed
[TLE][TEST] Skip raw MLIR cache-key test without bindings
The MLIR cache-key test requires the optional mlir Python bindings. Skip only that test when the dependency is unavailable so the remaining raw cache-key tests continue to run.
1 parent 40ee80f commit a5a6a76

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

python/test/tle/unit/test_tle_raw_cache_key.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import ast
22
import textwrap
33

4+
import pytest
45
import triton.language as tl
56
from triton.experimental.tle.raw import dialect
67
from triton.experimental.tle.raw.cache_key import (
@@ -127,6 +128,7 @@ def make_cache_key() -> str:
127128

128129

129130
def test_mlir_dialect_cache_key_changes_with_edsl_source():
131+
pytest.importorskip("mlir", reason="requires the optional MLIR Python bindings")
130132

131133
@dialect(name="mlir")
132134
def edsl_v1():

0 commit comments

Comments
 (0)