Fix up the test-set_mode_if_different unittests

pull/34503/head
Toshio Kuratomi 8 years ago
parent 3b5e9522d2
commit 1546ddb3c3

@ -80,7 +80,8 @@ def _check_mode_unchanged_when_already_0660(self, mode):
# 0660 mode work. It cannot be used to check that setting a mode that is
# not equivalent to 0660 works.
with patch('os.lstat', side_effect=[self.mock_stat2, self.mock_stat2, self.mock_stat2]) as m_lstat:
self.assertEqual(self.am.set_mode_if_different('/path/to/file', mode, False), False)
with patch('os.path.exists', return_value=True):
self.assertEqual(self.am.set_mode_if_different('/path/to/file', mode, False), False)
SYNONYMS_0660 = (

Loading…
Cancel
Save