mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Fix file serialize test
This commit is contained in:
parent
5ac3738ea9
commit
ed4de6385d
@ -1621,7 +1621,8 @@ class FileTest(ModuleCase, SaltReturnAssertsMixin):
|
||||
with salt.utils.files.fopen(path_test, 'rb') as fp_:
|
||||
serialized_file = salt.utils.stringutils.to_unicode(fp_.read())
|
||||
|
||||
expected_file = os.linesep.join([
|
||||
# The JSON serializer uses LF even on OSes where os.path.sep is CRLF.
|
||||
expected_file = '\n'.join([
|
||||
'{',
|
||||
' "a_list": [',
|
||||
' "first_element",',
|
||||
|
Loading…
Reference in New Issue
Block a user