test(tools): skip annotate_module tests when GNU objdump is unavailable

This commit is contained in:
pushkarreddyy committed 2026-10-27 19:37:46 +05:30
1 parent 62b3ba2522
commit 953704f6e2
1 file changed
+2 -1
+2 -1
View File
@@ -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)