From 754d403e62bb139de0e203a3a31a0fa378652978 Mon Sep 17 00:00:00 2001 From: Jourloy Date: Fri, 17 Jul 2026 10:09:01 +0300 Subject: [PATCH] test: isolate standalone Metal integration smoke --- pytest.ini | 3 --- test_flex_gemm_integration.py | 8 ++++++++ 2 files changed, 8 insertions(+), 3 deletions(-) delete mode 100644 pytest.ini diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index 27eec68..0000000 --- a/pytest.ini +++ /dev/null @@ -1,3 +0,0 @@ -[pytest] -testpaths = tests -python_files = test_*.py diff --git a/test_flex_gemm_integration.py b/test_flex_gemm_integration.py index f942c5f..acb833c 100644 --- a/test_flex_gemm_integration.py +++ b/test_flex_gemm_integration.py @@ -16,6 +16,14 @@ torch.zeros_like which lacks an MPS kernel in some PyTorch builds. That is a PyTorch issue, separate from the mtlgemm fix being verified here. """ +# This is an intentionally standalone, verbose MPS integration program rather +# than a pytest module. Avoid executing its device setup during pytest +# collection; CI and macOS acceptance invoke it directly. +if __name__ != "__main__": + import pytest + + pytest.skip("run test_flex_gemm_integration.py directly", allow_module_level=True) + import os os.environ.setdefault("SPARSE_CONV_BACKEND", "flex_gemm") os.environ.setdefault("SPARSE_ATTN_BACKEND", "sdpa")