From 7c061846bd3c6dc0dc486217dbbb2d0eb2ff04e9 Mon Sep 17 00:00:00 2001 From: SAPHID Date: Sat, 24 Oct 2026 02:55:40 +0000 Subject: [PATCH] Tests: run doctor Bash wrapper only on POSIX --- tests/test_frame_doctor.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_frame_doctor.py b/tests/test_frame_doctor.py index 199676d..9124e7c 100644 --- a/tests/test_frame_doctor.py +++ b/tests/test_frame_doctor.py @@ -106,8 +106,10 @@ class FrameDoctor(unittest.TestCase): self.assertEqual(doctor.report(data), 1) def test_help_shell_entry_point_is_offline(self): - # Bash is optional on Windows test runners; the Python CLI is portable. - import shutil + # This Bash wrapper is for macOS/Linux; Windows uses the Python CLI. + import os, shutil + if os.name == 'nt': + self.skipTest('POSIX shell wrapper') if not shutil.which('bash'): self.skipTest('bash unavailable') r = subprocess.run(['bash', str(ROOT / 'scripts/frame-doctor.sh'), '--help'],