mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix file serialize test
This commit is contained in:
parent
0ec1e1eca3
commit
4a54c7c164
1 changed files with 2 additions and 2 deletions
|
@ -1618,8 +1618,8 @@ class FileTest(ModuleCase, SaltReturnAssertsMixin):
|
|||
'finally': 'the last item'},
|
||||
formatter='json')
|
||||
|
||||
with salt.utils.files.fopen(path_test, 'r') as fp_:
|
||||
serialized_file = fp_.read()
|
||||
with salt.utils.files.fopen(path_test, 'rb') as fp_:
|
||||
serialized_file = salt.utils.stringutils.to_unicode(fp_.read())
|
||||
|
||||
expected_file = os.linesep.join([
|
||||
'{',
|
||||
|
|
Loading…
Add table
Reference in a new issue