diff --git a/tests/integration/modules/test_state.py b/tests/integration/modules/test_state.py index 987b79a110..6c9ae55c9e 100644 --- a/tests/integration/modules/test_state.py +++ b/tests/integration/modules/test_state.py @@ -2008,6 +2008,7 @@ class StateModuleTest(ModuleCase, SaltReturnAssertsMixin): 'File {0} updated'.format(file_name)) self.assertEqual(val['changes']['diff'], 'New file') + @skipIf(six.PY3 and salt.utils.platform.is_darwin(), 'Test is broken on macosx and PY3') def test_issue_30161_unless_and_onlyif_together(self): ''' test cmd.run using multiple unless options where the first cmd in the diff --git a/tests/unit/utils/test_mac_utils.py b/tests/unit/utils/test_mac_utils.py index a6fd850bde..f6c5894027 100644 --- a/tests/unit/utils/test_mac_utils.py +++ b/tests/unit/utils/test_mac_utils.py @@ -32,6 +32,7 @@ from salt.ext import six @skipIf(NO_MOCK, NO_MOCK_REASON) +@skipIf(not salt.utils.platform.is_darwin(), 'These tests run only on mac') class MacUtilsTestCase(TestCase, LoaderModuleMockMixin): ''' test mac_utils salt utility