diff --git a/tests/integration/states/test_file.py b/tests/integration/states/test_file.py index a318bc7550..5ad09eeccc 100644 --- a/tests/integration/states/test_file.py +++ b/tests/integration/states/test_file.py @@ -2294,7 +2294,11 @@ class FileTest(ModuleCase, SaltReturnAssertsMixin): # Check that the owner and group are correct, and # the mode is what we expect temp_file_stats = os.stat(tempfile) + + # Normalize the mode temp_file_mode = six.text_type(oct(stat.S_IMODE(temp_file_stats.st_mode))) + temp_file_mode = salt.utils.files.normalize_mode(temp_file_mode) + self.assertEqual(temp_file_mode, '4750') self.assertEqual(pwd.getpwuid(temp_file_stats.st_uid).pw_name, user) self.assertEqual(grp.getgrgid(temp_file_stats.st_gid).gr_name, group)