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)