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
5ac3738ea9
commit
ed4de6385d
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue