Fix file serialize test

This commit is contained in:
Daniel A. Wozniak 2018-09-19 22:47:07 -06:00
parent 5ac3738ea9
commit ed4de6385d
No known key found for this signature in database
GPG Key ID: 166B9D2C06C82D61

View File

@ -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",',