mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix 50221 regression test on Windows
This commit is contained in:
parent
1840af9c00
commit
824950c4cd
1 changed files with 3 additions and 2 deletions
|
@ -2532,11 +2532,12 @@ class FileTest(ModuleCase, SaltReturnAssertsMixin):
|
|||
|
||||
@with_tempfile()
|
||||
def test_issue_50221(self, name):
|
||||
expected = b'abc{0}{0}{0}'.format(os.linesep)
|
||||
ret = self.run_function(
|
||||
'pillar.get',
|
||||
['issue-50221']
|
||||
)
|
||||
assert ret == 'abc\n\n\n'
|
||||
assert ret.encode() == expected
|
||||
ret = self.run_function(
|
||||
'state.apply',
|
||||
['issue-50221'],
|
||||
|
@ -2547,7 +2548,7 @@ class FileTest(ModuleCase, SaltReturnAssertsMixin):
|
|||
self.assertSaltTrueReturn(ret)
|
||||
with salt.utils.files.fopen(name, 'rb') as fp:
|
||||
contents = fp.read()
|
||||
assert contents == b'abc\n\n\n'
|
||||
assert contents == expected
|
||||
|
||||
|
||||
class BlockreplaceTest(ModuleCase, SaltReturnAssertsMixin):
|
||||
|
|
Loading…
Add table
Reference in a new issue