mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
remove io and change to EROFS
This commit is contained in:
parent
688791ff60
commit
9ea6e8b456
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class FileclientTestCase(TestCase):
|
|||
If makedirs raises other than EEXIST errno, an exception should be raised.
|
||||
'''
|
||||
with patch('os.path.isfile', lambda prm: False):
|
||||
with patch('os.makedirs', self._fake_makedir(num=errno.EIO)):
|
||||
with patch('os.makedirs', self._fake_makedir(num=errno.EROFS)):
|
||||
with self.assertRaises(OSError):
|
||||
with Client(self.opts)._cache_loc('testfile') as c_ref_itr:
|
||||
assert c_ref_itr == '/__test__/files/base/testfile'
|
||||
|
|
Loading…
Add table
Reference in a new issue