diff --git a/src/rez/tests/test_utils_elf.py b/src/rez/tests/test_utils_elf.py index 12bf19c25..734fe4c3b 100644 --- a/src/rez/tests/test_utils_elf.py +++ b/src/rez/tests/test_utils_elf.py @@ -5,7 +5,10 @@ """ unit tests for 'rez.utils.elf' module """ -from rez.tests.util import TestBase +import platform +import unittest + +from rez.tests.util import TestBase, program_dependent from rez.utils.elf import get_rpaths, patch_rpaths @@ -22,6 +25,8 @@ def setUpClass(cls): def tearDownClass(cls): super().tearDownClass() + @unittest.skipUnless(platform.system() == "Linux", "Linux only") + @program_dependent("readelf") def test_get_rpaths_raises_runtime_exception(self): """Tests that no TypeError from elf functions are raised.""" self.assertRaises( @@ -32,4 +37,4 @@ def test_get_rpaths_raises_runtime_exception(self): self.assertRaises( RuntimeError, patch_rpaths("/path/to/elfpath", ["$ORIGIN", "$ORIGINTEST"]) - ) \ No newline at end of file + )