diff --git a/tests/unit/states/test_file.py b/tests/unit/states/test_file.py index e2db32e175..43a4c771b8 100644 --- a/tests/unit/states/test_file.py +++ b/tests/unit/states/test_file.py @@ -775,10 +775,15 @@ class TestFileState(TestCase, LoaderModuleMockMixin): with patch.object(os.path, 'exists', mock_t): with patch.dict(filestate.__opts__, {'test': True}): ret.update({'comment': comt}) - self.assertDictEqual(filestate.managed - (name, user=user, - group=group, - mode=400), ret) + if salt.utils.is_windows(): + self.assertDictEqual(filestate.managed + (name, user=user, + group=group), ret) + else: + self.assertDictEqual(filestate.managed + (name, user=user, + group=group, + mode=400), ret) # 'directory' function tests: 1