From fb165307603e82d62c4cd771d832e5a8df741350 Mon Sep 17 00:00:00 2001 From: Qiong Wu Date: Tue, 26 May 2026 17:07:27 +0800 Subject: [PATCH] fix(test): skip test_compile_enabled on hosts without QNN EP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The test passes --compile -d npu which requires QNN EP to resolve a compile_provider. On non-QNN hosts (e.g. TensorRT) resolve_eps("npu") returns an empty list, making compile None — expected behavior, not a bug. --- tests/e2e/test_config_e2e.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/e2e/test_config_e2e.py b/tests/e2e/test_config_e2e.py index ca2e62572..60d10c958 100644 --- a/tests/e2e/test_config_e2e.py +++ b/tests/e2e/test_config_e2e.py @@ -32,6 +32,7 @@ import pytest from click.testing import CliRunner +from tests.e2e.require_ep import require_ep from winml.modelkit.commands.config import config @@ -372,6 +373,7 @@ def test_no_compile_default(self) -> None: def test_compile_enabled(self) -> None: """--compile (negated default) should produce a compile section.""" + require_ep("qnn") data = _run_config( "-m", self.MODEL,