Normalize crlf in tests

This commit is contained in:
Anthony Sottile 2019-12-23 18:27:30 -08:00
parent 517c3145f4
commit 4941ed58d5
7 changed files with 46 additions and 58 deletions

View file

@ -249,7 +249,7 @@ class Fixture(object):
data = self._stream.data.getvalue()
self._stream.data.seek(0)
self._stream.data.truncate()
return data
return data.replace(b'\r\n', b'\n')
def get(self):
"""Get the output assuming it was written as UTF-8 bytes"""