From ef878f4d25123db722d761a9cca9db54815b93c9 Mon Sep 17 00:00:00 2001 From: Roland Dobai Date: Tue, 16 Sep 2025 19:01:16 +0200 Subject: [PATCH] ci(test): Test requiring pexpect.spawn cannot be run on Windows --- tools/test_idf_py/test_idf_qemu.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/test_idf_py/test_idf_qemu.py b/tools/test_idf_py/test_idf_qemu.py index 27da2f511b..b7bbaf1e2f 100755 --- a/tools/test_idf_py/test_idf_qemu.py +++ b/tools/test_idf_py/test_idf_qemu.py @@ -8,7 +8,12 @@ import sys import tempfile import unittest -import pexpect +if sys.platform == 'win32': + import pytest + + pytest.skip('pexpect.spawn is not available on Windows', allow_module_level=True) +else: + import pexpect class IdfPyQemuTest(unittest.TestCase):