mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix linter errors
This commit is contained in:
parent
baf291b4c8
commit
2cf80c1595
1 changed files with 3 additions and 3 deletions
|
@ -2407,9 +2407,9 @@ class FileTest(ModuleCase, SaltReturnAssertsMixin):
|
|||
@with_tempdir()
|
||||
def test_issue_48557(self, tempdir):
|
||||
tempfile = os.path.join(tempdir, 'temp_file_issue_48557')
|
||||
with open(tempfile, 'wb') as fp:
|
||||
with salt.utils.files.fopen(tempfile, 'wb') as fp:
|
||||
fp.write(os.linesep.join([
|
||||
'test1',
|
||||
'test1',
|
||||
'test2',
|
||||
'test3',
|
||||
'',
|
||||
|
@ -2420,7 +2420,7 @@ class FileTest(ModuleCase, SaltReturnAssertsMixin):
|
|||
mode='insert',
|
||||
content='test4')
|
||||
self.assertSaltTrueReturn(ret)
|
||||
with open(tempfile, 'rb') as fp:
|
||||
with salt.utils.files.fopen(tempfile, 'rb') as fp:
|
||||
content = fp.read()
|
||||
self.assertEqual(content, os.linesep.join([
|
||||
'test1',
|
||||
|
|
Loading…
Add table
Reference in a new issue