From 953704f6e2a211c0e0be4b119fd995aadca6e00a Mon Sep 17 00:00:00 2001 From: pushkarreddyy <212133856+pushkarreddyy@users.noreply.github.com> Date: Tue, 27 Oct 2026 19:37:46 +0530 Subject: [PATCH] test(tools): skip annotate_module tests when GNU objdump is unavailable --- tools/tests/test_annotate_module.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/tests/test_annotate_module.py b/tools/tests/test_annotate_module.py index bb01a2b717..43a400825b 100644 --- a/tools/tests/test_annotate_module.py +++ b/tools/tests/test_annotate_module.py @@ -120,7 +120,8 @@ class ObjdumpDiscoveryTests(unittest.TestCase): class AnnotateModuleTests(unittest.TestCase): def setUp(self): - self.assertIsNotNone(annotate_module.gnu_objdump(), "GNU binutils objdump (objdump or gobjdump) is required to run these tests") + if annotate_module.gnu_objdump() is None: + self.skipTest("GNU binutils objdump (objdump or gobjdump) is required to run these tests") self.directory = tempfile.TemporaryDirectory() self.addCleanup(self.directory.cleanup) self.root = Path(self.directory.name)